Re: more on database design - Mailing list pgsql-general

From Scott Marlowe
Subject Re: more on database design
Date
Msg-id 1164146520.6040.514.camel@state.g2switchworks.com
Whole thread Raw
In response to more on database design  (Desmond Coughlan <coughlandesmond@yahoo.fr>)
List pgsql-general
On Tue, 2006-11-21 at 04:18, Desmond Coughlan wrote:
> X-No-Archive: true
>
> Hi,
> Almost finished this database .. anyone able to take a glance at this,
> and tell me if with the ALTER TABLE statements at the bottom, I'm
> giving myself more work than necessary?
>
> http://www.chez.com/desmondcoughlan/unix/bibliotheque.sql
>
> Once it's over, I can concentrate on learning enough PhP to get a
> search page going.  :)

Just looks like you're doing it the hard way.

Most tables you can do something like:

create table abc (field1 int primary key, field2 not null references
someothertable(id));

i.e. do it at once.

But it's not a big deal.

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: list archives
Next
From: Richard Huxton
Date:
Subject: Re: MSSQL to PostgreSQL : Encoding problem