pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgdump fails on trigger function
3+ messages / 2 participants
[nested] [flat]

* pgdump fails on trigger function
@ 2001-12-19 15:16  Randall Perry <rgp@systame.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Randall Perry @ 2001-12-19 15:16 UTC (permalink / raw)
  To: pgsql-admin

Anyone know what this means:

getTables(): SELECT (funcname) for trigger cust_modification_date returned 0
tuples. Expected 1.
pg_dump failed on tasbill, exiting

Tried deleting and recreating the trigger. After restarting the postmaster
pgdump works ok once. The next time it runs it fails again with the same
error.


-- 
Randy Perry
sysTame
Mac Consulting/Sales

phn                 561.589.6449
mobile email        help@systame.com






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgdump fails on trigger function
@ 2001-12-19 16:08  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Randall Perry <rgp@systame.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2001-12-19 16:08 UTC (permalink / raw)
  To: Randall Perry <rgp@systame.com>; +Cc: pgsql-admin

Randall Perry <rgp@systame.com> writes:
> Anyone know what this means:
> getTables(): SELECT (funcname) for trigger cust_modification_date returned 0
> tuples. Expected 1.

It would seem you have dropped the function which that trigger uses.
(If you drop and recreate a function, you have to drop and recreate
any triggers that use it too.  The triggers refer to the function by
OID, but the recreated function will have a different OID.)

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pgdump fails on trigger function
@ 2001-12-20 15:21  Randall Perry <rgp@systame.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Randall Perry @ 2001-12-20 15:21 UTC (permalink / raw)
  To: pgsql-admin

on 12/19/01 11:08 AM, Tom Lane at tgl@sss.pgh.pa.us wrote:

> Randall Perry <rgp@systame.com> writes:
>> Anyone know what this means:
>> getTables(): SELECT (funcname) for trigger cust_modification_date returned 0
>> tuples. Expected 1.
> 
> It would seem you have dropped the function which that trigger uses.
> (If you drop and recreate a function, you have to drop and recreate
> any triggers that use it too.  The triggers refer to the function by
> OID, but the recreated function will have a different OID.)
> 

Thanks, I'll check it out.



-- 
Randy Perry
sysTame
Mac Consulting/Sales

phn                 561.589.6449
mobile email        help@systame.com






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-12-20 15:21 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-12-19 15:16 pgdump fails on trigger function Randall Perry <rgp@systame.com>
2001-12-19 16:08 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-12-20 15:21   ` Randall Perry <rgp@systame.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox