Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints
Дата
Msg-id
e31eccb0-d324-0f21-67b6-4e621c103f76@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
[HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
[HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Thomas Munro <thomas.munro@enterprisedb.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] [PATCH] Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Robbie Harwood <rharwood@redhat.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Robbie Harwood <rharwood@redhat.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Michael Paquier <michael@paquier.xyz>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Dmitry Dolgov <9erthalion6@gmail.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Andres Freund <andres@anarazel.de>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option forconstraints Andreas Joseph Krogh <andreas@visena.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Nico Williams <nico@cryptonector.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option for constraints Vik Fearing <vik.fearing@2ndquadrant.com>
Re: [HACKERS] [PATCH] WIP Add ALWAYS DEFERRED option forconstraints Andreas Joseph Krogh <andreas@visena.com>
On 11/2/17 16:54, Nico Williams wrote:
> Replacing condeferred and condeferrable with a char columns also
> occurred to me, and though I assume backwards-incompatible changes to
> pg_catalog tables are fair game, I assumed everyone would prefer
> avoiding such changes where possible.

I don't think there is an overriding mandate to avoid such catalog
changes.  Consider old clients that don't know about your new column.
They might look at the catalog entries and derive information about a
constraint, not being aware that there is additional information in
another column that overrides that.  So in such cases it's arguably
better to make a break.

(In any case, it might be worth waiting for a review of the rest of the
patch before taking on a significant rewrite of the catalog structures.)

> Hmmm, must I do anything special about _downgrades_?  Does PostgreSQL
> support downgrades?

no

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
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 по дате отправления
От: Alvaro Herrera
Дата:
От: Peter Eisentraut
Дата:
FAQ