Re: How can I set all constraints to be deferrable for a DB/schema - Mailing list pgsql-general

From Guillaume Lelarge
Subject Re: How can I set all constraints to be deferrable for a DB/schema
Date
Msg-id CAECtzeUpcV3AizZLMwv1PTMmfUZt__u=wiZkZ1AFN_8nzQ59gA@mail.gmail.com
Whole thread Raw
In response to How can I set all constraints to be deferrable for a DB/schema  (David Gauthier <davegauthierpg@gmail.com>)
List pgsql-general
Hi,

Le mer. 18 mars 2020 à 04:14, David Gauthier <davegauthierpg@gmail.com> a écrit :
Hi:

psql (9.6.7, server 11.3) (linux)

Is there a way to set all constraints on all tables of a DB and/or schema to be deferrable ?  Or do I have to do them one-by-one ?


You have to do them one by one. Or write a DO script to do it (but it will still involve many ALTER TABLE statements).


--
Guillaume.

pgsql-general by date:

Previous
From: "Daniel Westermann (DWE)"
Date:
Subject: Re: Temporary tablespaces on a RAM disk
Next
From: stan
Date:
Subject: propogate RAISE levels < EXCEPTION through MS Access?