Re: How to release SET() in PgSQL?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: "Andrey Y(dot) Mosienko" <feo(at)ttn(dot)ru>
Cc: Postgres <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to release SET() in PgSQL?
Date: 2001-02-21 15:54:09
Message-ID: Pine.LNX.4.30.0102211651370.1381-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andrey Y. Mosienko writes:

> CREATE TABLE "test" (
> "a" SET('one','two','three')
> };

You could split that off into a separate table, e.g.,

CREATE TABLE test1 (
id int,
/* the rest of the columns in your "test" */
);

CREATE TABLE test2 (
id int references test1,
a varchar check a in ('one', 'two', 'three')
);

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Lyke 2001-02-21 16:11:33 Re: Bug in my ( newbie ) mind?
Previous Message Antonis Antoniou 2001-02-21 15:27:29 AllocSetAlloc()