Re: System column support for partitioned tables using heap

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: System column support for partitioned tables using heap
Дата
Msg-id CA+TgmoZeOruj626Dmvj5O1o6SEU6UM5igJFHSF6PkDtiE+7h3A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: System column support for partitioned tables using heap  (Morris de Oryx <morrisdeoryx@gmail.com>)
Список pgsql-hackers
On Tue, Jul 19, 2022 at 11:22 PM Morris de Oryx <morrisdeoryx@gmail.com> wrote:
> It might help if I show a sample insert handling function. The issue is with the line at the end of the top CTE,
insert_rows:
>
>         returning xmax as inserted_transaction_id),
>
> That's what fails on partitions. Is there an alternative way to test what happened to the row(s)? here's the full
function.. I wrote a code generator, so I don't have to hand-code all of these bits for each table+version:
 

Oh I see. I didn't realize you were using INSERT .. ON CONFLICT
UPDATE, but that makes tons of sense, and I don't see an obvious
alternative to the way you wrote this.

Hmm.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Undocumented Order By vs Target List Volatile Function Behavior
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fwd: Unprivileged user can induce crash by using an SUSET param in PGOPTIONS