request for feature: table value constructor (related to multivalue insert stmt)

From: "Pavel Stehule" <pavel(dot)stehule(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: request for feature: table value constructor (related to multivalue insert stmt)
Date: 2006-07-02 19:59:26
Message-ID: BAY20-F702372ED1F9ABE6CCDC30F9730@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomi NA 2006-07-02 21:14:54 Re: different sort order in windows and linux version
Previous Message Bruce Momjian 2006-07-02 19:51:39 Re: [COMMITTERS] pgsql: Do a pass of code review for the