Temporarily disable not null constraints

Поиск
Список
Период
Сортировка
От Nagaraj Raj
Тема Temporarily disable not null constraints
Дата
Msg-id 815507272.4135293.1607025495638@mail.yahoo.com
обсуждение исходный текст
Ответы Re: Temporarily disable not null constraints  (Michael Lewis <mlewis@entrata.com>)
Re: Temporarily disable not null constraints  (Milos Babic <milos.babic@gmail.com>)
Re: Temporarily disable not null constraints  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-performance
Hi,

Can we disable not null constraints temporarily in the session-based transaction, like we disable FK constraints? 

SET session_replication_role = ‘replica’; 
alter table table_name disable trigger user;”

above two options are working for unique constraints violation exception. 

Thanks,
Rj

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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: time taking deletion on large tables
Следующее
От: Michael Lewis
Дата:
Сообщение: Re: Temporarily disable not null constraints