From: Nagaraj Raj <nagaraj.sf@yahoo.com>
To: Pgsql Performance <pgsql-performance@lists.postgresql.org>
Subject: Temporarily disable not null constraints
Date: Thu, 3 Dec 2020 19:58:15 +0000 (UTC)
Message-ID: <815507272.4135293.1607025495638@mail.yahoo.com> (raw)
References: <815507272.4135293.1607025495638.ref@mail.yahoo.com>
Hi,
Can we disable not null constraints temporarily in the session-based transaction, like we disable FK constraints?
SETsession_replication_role = ‘replica’; alter table table_name disable trigger user;”
above two options are working for unique constraints violation exception.
Thanks,Rj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: nagaraj.sf@yahoo.com, pgsql-performance@lists.postgresql.org
Subject: Re: Temporarily disable not null constraints
In-Reply-To: <815507272.4135293.1607025495638@mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox