[HACKERS] oversight in EphemeralNamedRelation support

Поиск
Список
Период
Сортировка
От Julien Rouhaud
Тема [HACKERS] oversight in EphemeralNamedRelation support
Дата
Msg-id CAOBaU_YdPVH+PTtiKSSLOiiW3mVDYsnNUekK+XPbHXiP=wrFLA@mail.gmail.com
обсуждение исходный текст
Ответы Re: [HACKERS] oversight in EphemeralNamedRelation support  (Thomas Munro <thomas.munro@enterprisedb.com>)
Список pgsql-hackers
Hi,

Hugo Mercier (in Cc) reported me an error in a query, failing since pg10.

Simple test case to reproduce:

CREATE TABLE public.test (id integer);
WITH test AS (select 42) INSERT INTO public.test SELECT * FROM test;

which will fail with "relation "test" cannot be the target of a
modifying statement".

IIUC, that's an oversight in 18ce3a4ab22, where setTargetTable()
doesn't exclude qualified relation when searching for special
relation.

PFA a simple patch to fix this issue, with updated regression test.

Regards.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: [HACKERS] GSoC 2017 : Patch for predicate locking in Gist index
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: [HACKERS] Latches API on windows