Re: more on database design

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Desmond Coughlan <coughlandesmond(at)yahoo(dot)fr>
Cc: pgsql mailing list <pgsql-general(at)postgresql(dot)org>
Subject: Re: more on database design
Date: 2006-11-21 22:02:00
Message-ID: 1164146520.6040.514.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-11-21 22:12:19 Re: MSSQL to PostgreSQL : Encoding problem
Previous Message Bruce Momjian 2006-11-21 21:54:28 Re: list archives