Change ON UPDATE behavior of fkey

From: Mike Rylander <mrylander(at)gmail(dot)com>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Change ON UPDATE behavior of fkey
Date: 2018-03-15 14:40:43
Message-ID: CAO8ar==Qch8afejn3qARaSpHw2LGHozcqMMZ9dFzVwuviynipQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message Tiffany Thang 2018-03-15 14:57:05 psql output result
Previous Message bricklen 2018-03-15 13:19:41 Re: How to monitor logical replication initial sync?