Skip site navigation (1) Skip section navigation (2)

Re: ERROR: deferredTriggerGetPreviousEvent: event for tuple (0,9) not found

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: kristis(dot)makris(at)datasoft(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: ERROR: deferredTriggerGetPreviousEvent: event for tuple (0,9) not found
Date: 2001-07-11 15:21:35
Message-ID: 18395.994864895@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-odbcpgsql-sql
pgsql-bugs(at)postgresql(dot)org writes:
> ERROR:  deferredTriggerGetPreviousEvent: event for tuple (0,9) not found

Hmm, are you trying to create triggers on pg_shadow?  It's hard to see
how that message could come from an "UPDATE pg_shadow" otherwise.

Triggers on system catalogs don't work very well, because they won't
be invoked as a side effect of system-initiated operations.  In this
situation, it appears that the trigger code sees that the pg_shadow row
was inserted in the current transaction, so it tries to look up the row
in the list of pending trigger events --- and doesn't find an entry,
because CREATE USER didn't invoke the trigger code.

In a perfect world we'd support user-defined triggers on the system
catalogs, but given the potential circularity problems, I doubt it's
going to happen real soon.  I'd suggest finding another approach.

			regards, tom lane

In response to

Responses

pgsql-odbc by date

Next:From: Kristis MakrisDate: 2001-07-11 16:04:45
Subject: Re: ERROR: deferredTriggerGetPreviousEvent: event for tuple(0,9) not found
Previous:From: Edward ThomasDate: 2001-07-11 13:19:41
Subject: Data export using Microsoft Access

pgsql-bugs by date

Next:From: Kristis MakrisDate: 2001-07-11 16:04:45
Subject: Re: ERROR: deferredTriggerGetPreviousEvent: event for tuple(0,9) not found
Previous:From: Peter EisentrautDate: 2001-07-11 15:19:27
Subject: Re: shared library compile error

pgsql-sql by date

Next:From: Kristis MakrisDate: 2001-07-11 16:04:45
Subject: Re: ERROR: deferredTriggerGetPreviousEvent: event for tuple(0,9) not found
Previous:From: Jeff EckermannDate: 2001-07-11 15:19:19
Subject: RE: can we write to a flat file from Postgresql procedure

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group