Search Postgresql Archives

Re: constraint trigger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Komaravolu, Satya" <satya.komaravolu@xxxxxxxxxxxx> writes:
>   The SQL file is failing on the following error. I gave you that
> message as it was the first one for the list
>   of CONSTRAINT TRIGGER statements.
  
>  NOTICE:  converting trigger group into constraint "<unnamed>" FOREIGN
> KEY jn_fuel(transaction_id) REFERENCES jn_transaction_header(record_id)
> DETAIL:  Found referencing table's trigger.
> psql:cfn4.dbinstall.sql:2585: ERROR:  there is no unique constraint
> matching given keys for referenced table "jn_transaction_header"

Hmm, is it possible that the dump file creates a unique or pkey
constraint on jn_transaction_header(record_id) further down?

What is the dump file from, anyway (which PG version exactly)?
How old is the foreign key constraint --- it could have been
propagated through several PG versions, because we didn't start
trying to clean up these obsolete trigger declarations until recently.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux