Re: Are globally defined constants possible at all ? - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Are globally defined constants possible at all ?
Date
Msg-id 20020607170258.Y30966@mail.libertyrms.com
Whole thread Raw
In response to Re: Are globally defined constants possible at all ?  (Gregory Seidman <gss+pg@cs.brown.edu>)
Responses Re: Are globally defined constants possible at all ?  (Gregory Seidman <gss+pg@cs.brown.edu>)
Re: Are globally defined constants possible at all ?  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
List pgsql-general
On Fri, Jun 07, 2002 at 02:36:35PM -0400, Gregory Seidman wrote:

> I am in the exact same position. I have a number of things which are
> essentially enumerations. Since PostgreSQL does not support an enumeration
> type (MySQL does, but then it doesn't have a proper boolean type), I have a

Why don't you use a CHECK contraint?  That's the standard way to do
it.

A

--
----
Andrew Sullivan                               87 Mowat Avenue
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110


pgsql-general by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Slow connection
Next
From: Gregory Seidman
Date:
Subject: Re: Are globally defined constants possible at all ?