Re: constraint trigger - Mailing list pgsql-general

From Tom Lane
Subject Re: constraint trigger
Date
Msg-id 19778.1238784189@sss.pgh.pa.us
Whole thread Raw
In response to constraint trigger  ("Komaravolu, Satya" <satya.komaravolu@gilbarco.com>)
List pgsql-general
"Komaravolu, Satya" <satya.komaravolu@gilbarco.com> 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

pgsql-general by date:

Previous
From: Gerd Koenig
Date:
Subject: Re: high load on server
Next
From: Scott Marlowe
Date:
Subject: Re: high load on server