Re: disable triggers isolated to transaction only? - Mailing list pgsql-general

From Tom Lane
Subject Re: disable triggers isolated to transaction only?
Date
Msg-id 26862.1267575413@sss.pgh.pa.us
Whole thread Raw
In response to disable triggers isolated to transaction only?  (Vick Khera <vivek@khera.org>)
List pgsql-general
Vick Khera <vivek@khera.org> writes:
> My question is this: will ALTER TABLE ONLY $subtable DISABLE TRIGGER
> ALL within a transaction only affect my transaction, or will it affect
> anyone inserting into this subtable.  If it blocks external inserts
> that's ok since my transactions are small while moving the data.  I
> guess at worse I lock the table.

Yeah, ALTER TABLE will lock the table anyway.  As long as you re-enable
the triggers before committing, it won't affect any other transaction.

            regards, tom lane

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Not all functions in schema pg_catalog are "visible"
Next
From: Ozz Nixon
Date:
Subject: SQL Syntax - like FIELD and BITPATTERN = BITPATTERN?