Can we use SQL to find out which keywords only mean something to Postgres inside a DO block or a PL/pgSQL function? And if not, can somebody perhaps tell me whether my list is complete or if there are words that shouldn't be on this list:
continue, exit, foreach, loop, return, return next, return query, slice, while, alias, begin, constant, declare, exception, execute, get (stacked) diagnostics, perform, raise, message, detail, hint, errcode, debug, log, info, notice, warning, found, sqlerrm, sqlstate, new, old, tg_name, tg_when, tg_level, tg_op, tg_relid, tg_relname, tg_table_name, tg_table_schema, tg_nargs, tg_argv, tg_event, tg_tag
foreach
for example can only be used in a function or do block and isn't on that list at all. – user1602492continue
can also only be used in a function or do block and is on the list. – user1602492for
, it means it shouldn't be in your list – JGHfor
outside a function or do block? – user1602492