Re: foreign key on views

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Josh Harrison" <joshques(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: foreign key on views
Date: 2007-09-21 16:14:37
Message-ID: 6285.1190391277@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Josh Harrison" <joshques(at)gmail(dot)com> writes:
> I just wanted to know where is this error message thrown in the source
> code.?

"\set VERBOSITY verbose" would help...

regression=# create view v as select * from int4_tbl;
CREATE VIEW
regression=# \set VERBOSITY verbose
regression=# create table t (f1 int references v);
ERROR: 42809: referenced relation "v" is not a table
LOCATION: ATAddForeignKeyConstraint, tablecmds.c:3949

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-09-21 16:36:53 Re: 5 minutes to pg_dump nothing
Previous Message Nikita The Spider The Spider 2007-09-21 15:51:05 5 minutes to pg_dump nothing