Re: repost of how to do select in a constraint - Mailing list pgsql-general

From Dennis Gearon
Subject Re: repost of how to do select in a constraint
Date
Msg-id OLSRCBVHDXS05LI0862OL1V75SNGDRQ.3e2ddb4b@cal-lab
Whole thread Raw
In response to Re: repost of how to do select in a constraint  ("Peter Gibbs" <peter@emkel.co.za>)
List pgsql-general
Can I reference a function in a column check constraint, when the function doesn't yet exist,
i.e. a the time of table creation?

Or is it better to make the table, create the function, then alter table with a check
constraint?




pgsql-general by date:

Previous
From: "Williams, Travis L, NPONS"
Date:
Subject: DBD::Pg & DBD::PgPP Cpan question
Next
From: Kevin Brown
Date:
Subject: Re: postmaster.pid