pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kenneth Gonsalves <lawgon@thenilgiris.com>
To: Richard Huxton <dev@archonet.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: mysql set datatype
Date: Mon, 13 Dec 2004 19:13:25 +0530
Message-ID: <04121319132500.06834@thenilgiris.com> (raw)
In-Reply-To: <41BD985C.4030102@archonet.com>
References: <0412131631332P.21547@thenilgiris.com>
	<41BD985C.4030102@archonet.com>

On Monday 13 December 2004 06:55 pm, Richard Huxton wrote:
> 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?

just porting

kg



view thread (3+ messages)

Message-ID: <04121319132500.06834@thenilgiris.com>
Permalink:  ../04121319132500.06834@thenilgiris.com/
Also on:    postgresql.org/message-id/04121319132500.06834@thenilgiris.com

 · 

reply

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: lawgon@thenilgiris.com, dev@archonet.com
  Subject: Re: mysql set datatype
  In-Reply-To: <04121319132500.06834@thenilgiris.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