Re: PQoidValue - get last ID of primary key after INSERT - small fix
В списке pgsql-interfaces по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: PQoidValue - get last ID of primary key after INSERT - small fix |
| Дата | |
| Msg-id | 17604.1155235245@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | PQoidValue - get last ID of primary key after INSERT - small fix (Georgi Kolev <geo_kolev@mail.ru>) |
| Ответы |
Re: PQoidValue - get last ID of primary key after INSERT - small
|
| Список | pgsql-interfaces |
Georgi Kolev <geo_kolev@mail.ru> writes:
> The easiest way to fix the problem were to fix heap_insert() to get the
> right value in case there is no OID column declared in the table.
Not a chance. I could make a list of objections to that that's longer
than your patch, but the short of it is that this is a completely
inappropriate level of the system to be doing that kind of work in.
What we *are* working on is INSERT RETURNING (in fact I'm about to start
work on reviewing/committing that patch right now...), which is a much
more general solution to the problem.
regards, tom lane
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера