From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Fabio Furia Silva" <ff-(at)uol(dot)com(dot)br> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: Relation n does not exist when trying to ad a foregin key |
Date: | 2003-03-30 20:03:24 |
Message-ID: | 5294.1049054604@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
"Fabio Furia Silva" <ff-(at)uol(dot)com(dot)br> writes:
> I am having this error when I try to add a foreign key:
> ERROR: Relation n does not exist
What postgres version is this?
> These 3 tables (cep_bairro, cep_logra and cidade) where changed a lot,
> either by being recriated or via alter table.
If it's pre-7.3, I'd imagine that you got burnt by dropping a table that
was still somehow referenced elsewhere (by a trigger or view, say).
In 7.3 that type of mistake shouldn't be possible anymore, however.
You could find out more by looking through the system catalogs to see
where the dangling reference to OID 107890740 is. Consult the docs for
your version to see which columns in which system tables are references
to pg_class.oid.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-03-30 20:07:16 | Re: Bug #922: PANIC: open of /scratch/production_2/pg_clog/0996 failed: No such file or directory |
Previous Message | pgsql-bugs | 2003-03-30 16:53:54 | Bug #927: Hardcoded paths in windows install (731a1) |