An anonymous PSQL block is not defined and stored as an object, unlike stored procedures and triggers. It executes in run-time and cannot reference itself.

    Just like stored procedures, anonymous PSQL blocks can be used to process data and to retrieve data from the database.

    Syntax (incomplete)

    See for details.