Re: [PATCH] Add support for ON UPDATE/DELETE actions on ALTER CONSTRAINT

Поиск
Список
Период
Сортировка
От Matheus de Oliveira
Тема Re: [PATCH] Add support for ON UPDATE/DELETE actions on ALTER CONSTRAINT
Дата
Msg-id CAJghg4+hcKC2RQhZBgAWmg+=+JWxShtw_WgXRN1x0rFU39C5SA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [PATCH] Add support for ON UPDATE/DELETE actions on ALTER CONSTRAINT  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [PATCH] Add support for ON UPDATE/DELETE actions on ALTER CONSTRAINT  (Wolfgang Walther <walther@technowledgy.de>)
Список pgsql-hackers
Hi All,

I've took some time today to rebase the patch with master. Follows attached.

I'm still not sure if the chosen path is the best way. But I'd be glad to follow any directions we all see fit.

For now, this patch applies two methods:
1. Changes full constraint definition (which keeps compatibility with current ALTER CONSTRAINT):
    ALTER CONSTRAINT [<on_update>] [<on_delete>] [<deferrability>]
2. Changes only the subset explicit seem in the command (a new way, I've chosen to just add SET in the middle, similar to `ALTER COLUMN ... SET {DEFAULT | NOT NULL}` ):
    ALTER CONSTRAINT SET [<on_update>] [<on_delete>] [<deferrability>]

I'm OK with changing the approach, we just need to chose the color :D

I believe this is a small change in source code, but with huge impact for users with big tables. Would be great if it could go in PG 13.

Best regards,
--
Matheus de Oliveira


Вложения

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

Предыдущее
От: James Coleman
Дата:
Сообщение: Re: [PATCH] Incremental sort (was: PoC: Partial sort)
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: PATCH: add support for IN and @> in functional-dependencystatistics use