Re: default partition and concurrent attach partition

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: default partition and concurrent attach partition
Дата
Msg-id 20200907223545.GA4410@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: default partition and concurrent attach partition  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: default partition and concurrent attach partition
Список pgsql-hackers
Ah, it looks like we can get away with initializing the RRI to 0, and
then explicitly handle that case in ExecPartitionCheckEmitError, as in
the attached (which means reindenting, but I left it alone to make it
easy to read).  It kinda sucks because we don't report the tuple that
causes the error, but

a) it's a very unlikely case anyway
b) it's better than the bogus error message
c) it's better than some hypothetical crash
d) nobody uses partitioned default partitions anyway
e) nobody uses differing column order anyway

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: default partition and concurrent attach partition
Следующее
От: Tom Lane
Дата:
Сообщение: Re: A micro-optimisation for walkdir()