From: | Stephen Frost <sfrost(at)snowman(dot)net> |
---|---|
To: | Ryan Kelly <rpkelly22(at)gmail(dot)com> |
Cc: | David Fetter <david(at)fetter(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, Karol Trzcionka <karlikt(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: RETURNING syntax for COPY |
Date: | 2013-05-08 18:30:26 |
Message-ID: | 20130508183026.GG4361@tamriel.snowman.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
* Ryan Kelly (rpkelly22(at)gmail(dot)com) wrote:
> COPY ... RETURNING would certainly be useful to apply additional
> transformations to the data before finally sending it to its ultimate
> destination.
If we really think that COPY ... RETURNING is only going to be used in a
CTE or similar, then we could always only support that and forgo any
changes to the FE/BE protocol to support it. Or, at least, take the
simplest approach to supporting it which would involve cacheing the data
entirely before sending it back to the client (isn't that what we do on
a big INSERT ... VALUES ... RETURNING anyway? people can transfer in
blocks if they want to with INSERT .. VALUES or COPY .. RETURNING).
Thanks,
Stephen
From | Date | Subject | |
---|---|---|---|
Next Message | Igor Neyman | 2013-05-08 18:35:30 | Re: pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4 |
Previous Message | Evan D. Hoffman | 2013-05-08 18:27:18 | pg_upgrade fails, "mismatch of relation OID" - 9.1.9 to 9.2.4 |