pgsql: Fix infer_arbiter_indexes() to not barf on system columns.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix infer_arbiter_indexes() to not barf on system columns.
Дата
Msg-id E1b0bLR-0001jf-2R@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix infer_arbiter_indexes() to not barf on system columns.

While it could be argued that rejecting system column mentions in the
ON CONFLICT list is an unsupported feature, falling over altogether
just because the table has a unique index on OID is indubitably a bug.

As far as I can tell, fixing infer_arbiter_indexes() is sufficient to
make ON CONFLICT (oid) actually work, though making a regression test
for that case is problematic because of the impossibility of setting
the OID counter to a known value.

Minor cosmetic cleanups along with the bug fix.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8a13d5e6d1bb9ff9460c72992657077e57e30c32

Modified Files
--------------
src/backend/optimizer/util/plancat.c | 43 ++++++++++++++----------------------
1 file changed, 16 insertions(+), 27 deletions(-)


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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: pgsql: Fix assorted missing infrastructure for ON CONFLICT.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql: Fix assorted missing infrastructure for ON CONFLICT.