On Sunday, March 12, 2023, David Adams <dpadams(at)gmail(dot)com> wrote:
>
> DROP FUNCTION IF EXISTS tools.tell_me_how_atomic();
> CREATE OR REPLACE FUNCTION tools.tell_me_how_atomic()
>
> RETURNS text
>
> LANGUAGE SQL
>
> BEGIN ATOMIC
>
> return 'atomic';
>
> END;
>
>
Not a bug, user-error.
https://www.postgresql.org/docs/current/sql-createfunction.html
There are two valid function body forms defined under “sql_body”. Yours is
neither of those. Rewrite your body using one of those forms. Removing
being/end would make sense for this example.
David J.