Re: DB design and foreign keys

From: Gianluca Riccardi <ml-reader(at)moonwatcher(dot)it>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: DB design and foreign keys
Date: 2005-12-14 10:27:47
Message-ID: 439FF3A3.7080909@moonwatcher.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

[cut]

> Given this table layout, I'm gonna take a wild guess and ask if you're
> coming from MySQL and expecting the second serial order_code to be a
> sub-autoincrement to id?
>
no, always used PostgreSQL, but i'm having a deeper approach now, until
now i've been using th ORDBMS in a very 'easy' manner :(

> If so, it won't be. That's a mysqlism. If
> you want something similar, you'll have to implement it yourself, and
> note that such a thing tends to be a poor performer with lots of
> parallel updates, and it can also be susceptible to race conditions if
> no locking is used.
>
>
thank you, regards,
Gianluca Riccardi

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gianluca Riccardi 2005-12-14 15:08:05 Re: DB design and foreign keys
Previous Message Gianluca Riccardi 2005-12-14 10:26:55 Re: DB design and foreign keys