FK pointing to a VIEW

From: Sandro Dentella <sandro(at)e-den(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: FK pointing to a VIEW
Date: 2006-11-10 19:16:11
Message-ID: 20061110191611.GA24084@casa.e-den.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Do I understad correctly that i cannot point a Foreign Key to a view? Which
is the rationale of this?

TIA
sandro
*:-)

test=# alter table mail_inviate
test-# add constraint mail_inviate_fk
test-# FOREIGN KEY (mittente) REFERENCES mail_view(mail_address)
test-# ;
ERROR: referenced relation "mail_view" is not a table

--
Sandro Dentella *:-)
http://www.tksql.org TkSQL Home page - My GPL work

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2006-11-10 19:31:43 Re: FK pointing to a VIEW
Previous Message Andrus 2006-11-10 18:23:40 Cached dataset