Re: proposal: plpgsql pragma statement - Mailing list pgsql-hackers

From Pavel Luzanov
Subject Re: proposal: plpgsql pragma statement
Date
Msg-id 822d6608-a089-3404-5d3f-ed37089ffb3b@postgrespro.ru
Whole thread Raw
In response to Re: proposal: plpgsql pragma statement  (Alexey Bashtanov <bashtanov@imap.cc>)
Responses Re: proposal: plpgsql pragma statement  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: proposal: plpgsql pragma statement  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers

But maybe your extension could read the PERFORM statement preceding it and treat it as an annotation hint for the following statement.

In this case, comment line in some format will be better than real PERFORM statement. Like this:


/*+PRAGMA cmdtype CREATE; */
EXECUTE format('CREATE TABLE xxx ...
 
-----
Pavel Luzanov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

pgsql-hackers by date:

Previous
From: Alexey Bashtanov
Date:
Subject: Re: proposal: plpgsql pragma statement
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: plpgsql pragma statement