Re: Proposal: RETURNING primary_key()
От | Ian Barwick |
---|---|
Тема | Re: Proposal: RETURNING primary_key() |
Дата | |
Msg-id | 56DE1A16.50104@2ndquadrant.com обсуждение исходный текст |
Ответ на | Proposal: RETURNING primary_key() ("Igal @ Lucee.org" <igal@lucee.org>) |
Ответы |
Re: Proposal: RETURNING primary_key()
|
Список | 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
В списке pgsql-hackers по дате отправления: