From: | GH <grasshacker(at)over-yonder(dot)net> |
---|---|
To: | Kapil Tilwani <karan_pg_2(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Referential Integrity thru Views |
Date: | 2001-08-04 10:22:38 |
Message-ID: | 20010804052238.E48649@over-yonder.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, Aug 03, 2001 at 11:35:25PM +0530, some SMTP stream spewed forth:
> Hi,
> Right now, I am enforcing uniqueness in three different tables (Supplier, Customer, Ledger) thru the front-end by checking thru a Union Query. Is it possible to enforce such a uniquenessthru in the DB.
>
> Irrespective of the above, is it possible to have a foreign key check in this (???)
Yes.
If you mean supporting uniqueness in views, you would have to enforce
uniqueness on the underlying tables.
You can do this using "create table ... primary key" and "references"
as well as foreign key triggers.
The documentation is actually quite good on these, IIRC.
> Thanx,
> Kapil
gh
--
What, no one sings along with Ricky Martin anymore?
My kid sister does (but then, she prefers pico to vi ...)
-- Suresh Ramasubramanian, alt.sysadmin.recovery
From | Date | Subject | |
---|---|---|---|
Next Message | GH | 2001-08-04 10:30:48 | Re: Index-speeds |
Previous Message | Lamar Owen | 2001-08-04 03:14:15 | Re: HELP! BUG? pg_dump mucks up grant/revoke |