request for feature: table value constructor (related to multivalue insert stmt) - Mailing list pgsql-hackers

From Pavel Stehule
Subject request for feature: table value constructor (related to multivalue insert stmt)
Date
Msg-id BAY20-F702372ED1F9ABE6CCDC30F9730@phx.gbl
Whole thread Raw
List pgsql-hackers
Hello hackers

I think about solution multi values insert from TODO. There is one "hack" 
solution .. transformation from VALUES (a), (b) into SELECT a UNION ALL 
SELECT b. Or there is next (more general) solution .. implementation of 
table value constructor http://savage.net.au/SQL/sql-2003-2.bnf .

With TVC we can do:

INSERT INTO ... VALUES(r1), (r2), ...;
SELECT FROM a JOIN VALUES (r1), (r2), ...;
CREATE VIEW ... AS VALUES (r1), (r2), ...;

It's propably F641 sql-2003 noncore feature

Best regards
Pavel Stehule

_________________________________________________________________
Emotikony a pozadi programu MSN Messenger ozivi vasi konverzaci. 
http://messenger.msn.cz/



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql: Do a pass of code review for the
Next
From: Andrew Dunstan
Date:
Subject: odd 7.4 build failure on new sparc machine