Change ON UPDATE behavior of fkey

Поиск
Список
Период
Сортировка
От Mike Rylander
Тема Change ON UPDATE behavior of fkey
Дата
Msg-id CAO8ar==Qch8afejn3qARaSpHw2LGHozcqMMZ9dFzVwuviynipQ@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
I'm wanting to change the ON UPDATE behavior of several foreign keys.
I know this has been "asked and answered" in the past, and I have a
query that will generate one-statement-per-fkey DDL, but while
tailoring that query I noticed that pg_constraint's confupdtype could
just be changed to 'c' directly.

So, my question is, will updating pg_constraint "just work" (for, say,
new sessions, after forcing clients to reconnect) or would there be a
data risk?

Thanks in advance,

--
Mike Rylander


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

Предыдущее
От: bricklen
Дата:
Сообщение: Re: How to monitor logical replication initial sync?
Следующее
От: Tiffany Thang
Дата:
Сообщение: psql output result