From: Dado Feigenblatt <dado@wildbrain.com>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: ERROR: UNIQUE constraint matching given keys for referenced table "sequences" not found
Date: Mon, 16 Jul 2001 19:46:29 -0700
Message-ID: <3B53A705.4060807@wildbrain.com> (raw)
I'm trying to create some tables with foreign keys.
When I try to create a foreign key ...
foreign key(seq_code) references sequences(seq_code) on update
CASCADE on delete CASCADE,
I get this message:
ERROR: UNIQUE constraint matching given keys for referenced table
"sequences" not found
The problem is that the referenced field and table exist.
Any hint?
Using psql and PostgreSQL 7.1.1 on RedHat 7.1
Thanks.
--
Dado Feigenblatt Wild Brain, Inc.
Technical Director (415) 553-8000 x???
dado@wildbrain.com San Francisco, CA.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dado@wildbrain.com
Subject: Re: ERROR: UNIQUE constraint matching given keys for referenced table "sequences" not found
In-Reply-To: <3B53A705.4060807@wildbrain.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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