Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error
Дата
Msg-id 2960545.1761800903@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error  (Tender Wang <tndrwang@gmail.com>)
Ответы Re: BUG #19099: Conditional DELETE from partitioned table with non-updatable partition raises internal error
Список pgsql-bugs
Tender Wang <tndrwang@gmail.com> writes:
> I added Tom and Amit to the cc list.
> Any thoughts?

I'm having a hard time getting super excited about this.  file_fdw
does not support DELETE -- it provides no ExecForeignDelete method --
which is why you get this:

regression=# DELETE FROM pt;
ERROR:  cannot delete from foreign table "p1"

It's surely pretty accidental (and arguably not desirable)
if "DELETE FROM pt WHERE false" doesn't fail the same way.

Now, I agree that it's not great if you instead get an
internal error like "could not find junk ctid column".
But that smells to me like error checks being applied in
the wrong order rather than something fundamentally wrong.

I didn't look at the proposed patch yet.

            regards, tom lane



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