Dennis Gearon <gearond(at)fireserve(dot)net> writes:
> I am working on a design where a location for something can have:
> Fully qualified address with even building names, room numbers, and
> booth numbers.
> GPS location
> Other than triggers, is there a way to enforce this using tables and
> primary keys?
Put foreign key constraints on the address and GPS loc (so that they
must be either valid or NULL) and then add a CHECK constraint saying
they can't both be NULL.
regards, tom lane
In response to
pgsql-general by date
|Next:||From: FL||Date: 2004-05-01 10:06:01|
|Previous:||From: Sean Shanny||Date: 2004-05-01 00:08:12|
|Subject: Re: "out of memory" error|