How to do a strange constraint - Mailing list pgsql-novice

From Lewis Bergman
Subject How to do a strange constraint
Date
Msg-id 200204252140.g3PLeYe06634@lewis.abi.tconline.net
Whole thread Raw
List pgsql-novice
At least it seems strange to me.

I have a customer_main table with all the usual stuff plus a column named
agent. An inherited table from customer_main has a couple of columns
describing each agent.

I need to make sure that a valid id from the inherited table agent is
populating the agent column in customer_main. Any ideas on how to do this? A
RESTRICT constraint from the customer_main.agent column to the
customer_main.id column just seems strange for some reason. Is this the right
solution?
--
Lewis Bergman
Texas Communications
4309 Maple St.
Abilene, TX 79602-8044
915-695-6962 ext 115

pgsql-novice by date:

Previous
From: AarniRuuhimäki / Megative Tmi / KYMI.com
Date:
Subject: Strange behaviour
Next
From: Doug Silver
Date:
Subject: faster join access?