Re: SQL-standard function body

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Jaime Casanova <jcasanov(at)systemguards(dot)com(dot)ec>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: SQL-standard function body
Date: 2021-03-09 12:27:48
Message-ID: e14f620c-8e10-8103-e12d-657991c9dda7@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 05.03.21 06:58, Jaime Casanova wrote:
> I was making some tests with this patch and found this problem:
>
> """
> CREATE OR REPLACE FUNCTION public.make_table()
> RETURNS void
> LANGUAGE sql
> BEGIN ATOMIC
> CREATE TABLE created_table AS SELECT * FROM int8_tbl;
> END;
> ERROR: unrecognized token: "?"
> CONTEXT: SQL function "make_table"
> """

I see. The problem is that we don't have serialization and
deserialization support for most utility statements. I think I'll need
to add that eventually. For now, I have added code to prevent utility
statements. I think it's still useful that way for now.

Attachment Content-Type Size
v9-0001-SQL-standard-function-body.patch text/plain 94.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-03-09 12:31:16 Re: cleanup temporary files after crash
Previous Message Pavel Stehule 2021-03-09 12:16:10 Re: [PATCH] regexp_positions ( string text, pattern text, flags text ) → setof int4range[]