Re: Need help to organize database

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Vladimir S(dot) Petukhov" <vladimir(at)sycore(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need help to organize database
Date: 2004-12-21 21:21:02
Message-ID: 20041221212102.GA15590@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Dec 21, 2004 at 20:47:31 +0000,
"Vladimir S. Petukhov" <vladimir(at)sycore(dot)org> wrote:
> Ok, this is a real example:
>
> CREATE TABLE account (
> val1 BIGINT NULL,
> val2 BIGINT NULL,
> ...
>
> daypos SMALLINT NULL, -- Day position
> hourpos SMALLINT NULL, -- Hour position
> id INT NULL -- Link to the object
> );

That approach is reasonable but depending on what the val* columns mean
you might each of those as a separate role. You didn't add a lot of
information, but that they appear to be the same type suggests that you
might want one row per value. But without knowing what they mean it is
hard to say.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2004-12-21 21:29:33 Re: Scheduler in Postgres
Previous Message Jim C. Nasby 2004-12-21 21:17:05 Re: Scheduler in Postgres