Re: Schema sanity check

From: PFC <lists(at)peufeu(dot)com>
To: "Bill Moseley" <moseley(at)hank(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Schema sanity check
Date: 2007-05-21 21:53:54
Message-ID: op.tso5r4z9cigqcu@apollo13
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> The other option is to have a column on the mailbox table to flag that
> it is a default_mailbox -- but then I'd have to ensure there's only
> one column for each "person" flagged that way.

- is_default BOOL column in mailbox table
- conditional index :

UNIQUE INDEX ON mailboxes( owner ) WHERE is_default = 't'

> Second question. So, after a while the obvious problem happens and
> users have too many mailboxes and they want a way to group them into

Looks like a tree. Why not use a LTREE ?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message camb 2007-05-22 01:29:46 Adding auto-increment / sequence
Previous Message Bill Moseley 2007-05-21 21:42:15 Schema sanity check