From: | Ian Barwick <ian(at)2ndquadrant(dot)com> |
---|---|
To: | "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Proposal: RETURNING primary_key() |
Date: | 2016-03-08 00:17:26 |
Message-ID: | 56DE1A16.50104@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
On 08/03/16 05:32, Igal @ Lucee.org wrote:
> THE ISSUE:
>
> In JDBC there is a flag called RETURN_GENERATED_KEYS -- https://docs.oracle.com/javase/7/docs/api/java/sql/Statement.html#RETURN_GENERATED_KEYS
>
(...)
> THE PROPOSAL:
>
> The proposal is to allow something like RETURNING primary_key() (it can be a keyword, not
> necessarily a function), e.g.
>
> INSERT INTO test VALUES ('PostgresQL') RETURNING primary_key();
FYI something similar has been proposed before:
http://www.postgresql.org/message-id/53953EFB.8070701@2ndquadrant.com
The linked thread might provide more insights into the issues surrounding
this proposal.
Regards
Ian Barwick
--
Ian Barwick http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Regina Obe | 2016-03-08 00:24:47 | Re: Is there a way around function search_path killing SQL function inlining? |
Previous Message | Joe Conway | 2016-03-07 23:18:34 | Re: Badly designed error reporting code in controldata_utils.c |