> Is there any way to find out what constraints have been set on a table> or on columns in a table?
Take a look at the source for psql.
-- johs