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.8070...@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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers