Re: Are globally defined constants possible at all ?

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Are globally defined constants possible at all ?
Date: 2002-06-07 21:02:58
Message-ID: 20020607170258.Y30966@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)libertyrms(dot)info> M6K 3E3
+1 416 646 3304 x110

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gregory Seidman 2002-06-07 21:29:27 Re: Are globally defined constants possible at all ?
Previous Message Andrew Sullivan 2002-06-07 19:38:55 Re: Slow connection