Re: Proposal: RETURNING primary_key()

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Proposal: RETURNING primary_key()
Дата
Msg-id CAMsr+YHEOnhYr8OE-vZ6cCErQ5-ucZk4mPW-8AjJTfDR+hzNNA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposal: RETURNING primary_key()  ("Igal @ Lucee.org" <igal@lucee.org>)
Ответы Re: Proposal: RETURNING primary_key()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 8 March 2016 at 08:56, Igal @ Lucee.org <igal@lucee.org> wrote:
 

I'm not sure why it was not accepted at the end?

The biggest issue, though it might not be clear from that thread, is that what exactly it means to "return generated keys" is poorly defined by JDBC, and not necessarily the same thing as "return the PRIMARY KEY".

Should we return the DEFAULT on a UNIQUE column, for example?

IMO other vendors' drivers should be tested for behaviour in a variety of cases. Ideally the JDBC test suite too. Then specify the exact behaviour of what we need to satisfy the JDBC driver's requirements and anything else that might be related. 


--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Optimizer questions
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: How can we expand PostgreSQL ecosystem?