Re: [GENERAL] Enable/Disable Triggers

2011-03-15 Thread Vibhor Kumar
On Mar 16, 2011, at 2:31 AM, Andy Chambers wrote: > Is it a big no-no to enable/disable triggers by manually setting > pg_trigger.tgenabled to 'D'? Not recommended to do anything with catalog tables. At the place of this use following command: ALTER TABLE DISABLE TRIGGER [ trigger_name | AL

Re: [GENERAL] Enable/Disable Triggers

2011-03-15 Thread Andrew Sullivan
On Tue, Mar 15, 2011 at 05:01:50PM -0400, Andy Chambers wrote: > Is it a big no-no to enable/disable triggers by manually setting > pg_trigger.tgenabled to 'D'? No, but I seem to recall having seen corner cases where it didn't work. (This was the reason that in older versions of slony, slony fo

[GENERAL] Enable/Disable Triggers

2011-03-15 Thread Andy Chambers
Hi All, Is it a big no-no to enable/disable triggers by manually setting pg_trigger.tgenabled to 'D'? -- Andy Chambers -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Enable/Disable Triggers

2007-01-22 Thread Tom Lane
=?iso-8859-1?q?Germ=E1n_H=FCttemann_Arza?= <[EMAIL PROTECTED]> writes: > Hello, > I tried to execute ALTER TABLE emp DISABLE TRIGGER after_ins_emp on > PostgreSQL > 7.4.13 and I realised that feature isn't include yet in this version. > How can I enable/disable a trigger in this version of Postg

[GENERAL] Enable/Disable Triggers

2007-01-22 Thread Germán Hüttemann Arza
Hello, I tried to execute ALTER TABLE emp DISABLE TRIGGER after_ins_emp on PostgreSQL 7.4.13 and I realised that feature isn't include yet in this version. How can I enable/disable a trigger in this version of PostgreSQL? Should I set the attribute tgenabled from pg_trigger directly? Hope you