Re: pg_dump:cannot find function for trigger - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_dump:cannot find function for trigger
Date
Msg-id 7556.975002778@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump:cannot find function for trigger  (Claudio Grillo <cjg@certi.ufsc.br>)
Responses Re: pg_dump:cannot find function for trigger  (Claudio Jose Zanardi Grillo <cjg@certi.ufsc.br>)
List pgsql-general
Claudio Grillo <cjg@certi.ufsc.br> writes:
> getTables(): relation 'tb_bombas': cannot find function with oid 1654
> for trigger RI_ConstraintTrigger_28974

> But I can find de procedure with oid 1654 in the pg_proc, and the
> reference to this function in pg_trigger:

> pg_proc
> proname
>
|proowner|prolang|proisinh|proistrusted|proiscachable|pronargs|proretset|prorettype|proargtypes|probyte_pct|properbyte_cpu|propercall_cpu|prooutin_ratio|prosrc

> |probin
>
--------------------+--------+-------+--------+------------+-------------+--------+---------+----------+-----------+-----------+--------------+--------------+--------------+--------------------+------

> RI_FKey_noaction_del|      40|     11|f       |t           |f
> |       0|f        |         0|           |        100|
> 0|             0|           100|RI_FKey_noaction_del|-
> (1 row)


Hmm.  Do you have a user with sysid 40 in pg_shadow?  pg_dump tends to
get confused by 'owner' links that point to nonexistent users.

            regards, tom lane

pgsql-general by date:

Previous
From: "Gary MacDougall"
Date:
Subject: PHP, Win32, Postgres 7.0
Next
From: Jose Manuel Lorenzo Lopez
Date:
Subject: Compiling postgresql 7.0.3 for WinNT