On Fri, Aug 12, 2016 at 10:41 AM, Alexander Farber <alexander.farber@xxxxxxxxx> wrote: > why does this syntax fail in 9.5.3 please? Maybe because....... > $func$ LANGUAGE plpgsql; ... you are writing pspgsql..... > The doc https://www.postgresql.org/docs/9.5/static/sql-selectinto.html just But are looking at the docs for SQL. This kind of languages are similar to SQL, but not the same. I think https://www.postgresql.org/docs/9.5/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-SQL-ONEROW is the proper place to look it up. Francisco Olarte. -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general