Re: [SQL] Problems with disabling triggers in Postgres 7.3.9

2006-03-09 Thread Tom Lane
=?iso-8859-1?Q?Fl=E1vio_Suguimoto?= <[EMAIL PROTECTED]> writes: > EXECUTE ''update pg_class set reltriggers = count(*) from pg_trigger where > pg_class.oid=tgrelid and relname = '' || quote_literal(tablename); This command is just plain wrong, because the aggregation is done across uncertain scope

Re: [SQL] Problems with disabling triggers in Postgres 7.3.9

2006-03-09 Thread Flávio Suguimoto
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Richard Huxton Sent: Thursday, March 09, 2006 11:42 AM To: Flávio Suguimoto Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Problems with disabling triggers in Postgres 7.3.9 Flávio Suguimoto wrote: > Hi Richard, > > I have that trigger ru

Re: [SQL] Problems with disabling triggers in Postgres 7.3.9

2006-03-09 Thread Richard Huxton
Flávio Suguimoto wrote: Hi Richard, I have that trigger running on AFTER INSERT of participation table. That trigger inserts 3 new record for each line i inserted in participation. Yes, but WHY? What problem are you trying to solve. Presumably there is some difference between the first "parti

Re: [SQL] Problems with disabling triggers in Postgres 7.3.9

2006-03-09 Thread Flávio Suguimoto
nt: Thursday, March 09, 2006 10:56 AM To: Flávio Suguimoto Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Problems with disabling triggers in Postgres 7.3.9 Flávio Suguimoto wrote: > Hi all, > > I have a problem in a trigger that disable all the triggers of a table. This > error occurs rando

Re: [SQL] Problems with disabling triggers in Postgres 7.3.9

2006-03-09 Thread Flávio Suguimoto
rrera Sent: Thursday, March 09, 2006 10:56 AM To: Flávio Suguimoto Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Problems with disabling triggers in Postgres 7.3.9 Flávio Suguimoto wrote: > Hi all, > > I have a problem in a trigger that disable all the triggers of a table. This > error

Re: [SQL] Problems with disabling triggers in Postgres 7.3.9

2006-03-09 Thread Alvaro Herrera
Flávio Suguimoto wrote: > Hi all, > > I have a problem in a trigger that disable all the triggers of a table. This > error occurs randomly and my guess is that occurs when i have a lot of > concurrents inserts in the table participation. > > The error is : RelationBuildTriggers: 2 record(s) not