From: Richard Huxton <dev@archonet.com>
To: Kenneth Gonsalves <lawgon@thenilgiris.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: mysql set datatype
Date: Mon, 13 Dec 2004 13:25:48 +0000
Message-ID: <41BD985C.4030102@archonet.com> (raw)
In-Reply-To: <0412131631332P.21547@thenilgiris.com>
References: <0412131631332P.21547@thenilgiris.com>
Kenneth Gonsalves wrote:
> hi,
> how does one replicate the myql 'set' datatype in pg? i tried using 'check',
> but apparently there is much more to this
You could use a bit-string if you are just tracking set membership, but
that doesn't exactly duplicate the behaviour. It should be
straightforward enough to write some support functions and just use a
text type, but that'd use a lot more storage.
Of course, another table is the accepted way of doing this relationally.
Are there any particular features you need, or are you just porting an
application from Mysql?
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, lawgon@thenilgiris.com
Subject: Re: mysql set datatype
In-Reply-To: <41BD985C.4030102@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox