ALTER CONSTRAINT change action

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: ALTER CONSTRAINT change action
Date: 2018-05-30 16:23:10
Message-ID: CAMkU=1wBEU=RJxtEMZ_UcXWoQrXUydACoF=-m40D8Sh9uESxeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Currently you can't change the ON DELETE action or ON UPDATE action of an
existing constraint. You have to drop the constraint and create it again
with the action you want. This is not a light-weight activity, as it has
to validate the new constraint.

Is there a fundamental reason that ALTER TABLE...ALTER CONSTRAINT cannot
change the action? Or is just that no one got around to it?

Cheers,

Jeff

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2018-05-30 16:46:58 Re: Few comments on commit 857f9c36 (skip full index scans )
Previous Message Daniel Gustafsson 2018-05-30 16:19:48 Avoid extra Sort nodes between WindowAggs when sorting can be reused