pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Allow IMPORT FOREIGN SCHEMA within pl/pgsql.
2+ messages / 1 participants
[nested] [flat]

* pgsql: Allow IMPORT FOREIGN SCHEMA within pl/pgsql.
@ 2016-07-12 22:07  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-07-12 22:07 UTC (permalink / raw)
  To: pgsql-committers

Allow IMPORT FOREIGN SCHEMA within pl/pgsql.

Since IMPORT FOREIGN SCHEMA has an INTO clause, pl/pgsql needs to be
aware of that and avoid capturing the INTO as an INTO-variables clause.
This isn't hard, though it's annoying to have to make IMPORT a plpgsql
keyword just for this.  (Fortunately, we have the infrastructure now
to make it an unreserved keyword, so at least this shouldn't break any
existing pl/pgsql code.)

Per report from Merlin Moncure.  Back-patch to 9.5 where IMPORT FOREIGN
SCHEMA was introduced.

Report: <CAHyXU0wpHf2bbtKGL1gtUEFATCY86r=VKxfcACVcTMQ70mCyig@mail.gmail.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/baebab3ace480477f210dadc4633d8d119dfa978

Modified Files
--------------
src/pl/plpgsql/src/pl_gram.y    | 47 +++++++++++++++++++++++++++++++++--------
src/pl/plpgsql/src/pl_scanner.c |  1 +
2 files changed, 39 insertions(+), 9 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Allow IMPORT FOREIGN SCHEMA within pl/pgsql.
@ 2016-07-12 22:07  Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-07-12 22:07 UTC (permalink / raw)
  To: pgsql-committers

Allow IMPORT FOREIGN SCHEMA within pl/pgsql.

Since IMPORT FOREIGN SCHEMA has an INTO clause, pl/pgsql needs to be
aware of that and avoid capturing the INTO as an INTO-variables clause.
This isn't hard, though it's annoying to have to make IMPORT a plpgsql
keyword just for this.  (Fortunately, we have the infrastructure now
to make it an unreserved keyword, so at least this shouldn't break any
existing pl/pgsql code.)

Per report from Merlin Moncure.  Back-patch to 9.5 where IMPORT FOREIGN
SCHEMA was introduced.

Report: <CAHyXU0wpHf2bbtKGL1gtUEFATCY86r=VKxfcACVcTMQ70mCyig@mail.gmail.com>

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/a0943dbbea533e266f2db56d62ad43d9e0ed090a

Modified Files
--------------
src/pl/plpgsql/src/pl_gram.y    | 47 +++++++++++++++++++++++++++++++++--------
src/pl/plpgsql/src/pl_scanner.c |  1 +
2 files changed, 39 insertions(+), 9 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-07-12 22:07 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-07-12 22:07 pgsql: Allow IMPORT FOREIGN SCHEMA within pl/pgsql. Tom Lane <tgl@sss.pgh.pa.us>
2016-07-12 22:07 pgsql: Allow IMPORT FOREIGN SCHEMA within pl/pgsql. Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox