Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 2BE049FB2E2 for ; Tue, 31 Oct 2006 18:04:30 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 59488-05 for ; Tue, 31 Oct 2006 22:04:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from gatekeeper.daycos.com (outbound.daycos.com [204.26.70.70]) by postgresql.org (Postfix) with ESMTP id 243759FB259 for ; Tue, 31 Oct 2006 18:04:25 -0400 (AST) Received: by gatekeeper.daycos.com with Internet Mail Service (5.5.2653.19) id ; Tue, 31 Oct 2006 16:04:10 -0600 Message-ID: <031936836C46D611BB1B00508BE7345D04C02FAE@gatekeeper.daycos.com> From: Curtis Scheer To: Aaron Bono , "A. Kretschmer" Cc: pgsql-sql@postgresql.org Subject: Re: Table Relationships Date: Tue, 31 Oct 2006 16:04:10 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6FD38.7E1180B0" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200610/262 X-Sequence-Number: 26651 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C6FD38.7E1180B0 Content-Type: text/plain Thanks for the help. _____ From: Aaron Bono [mailto:postgresql@aranya.com] Sent: Tuesday, October 31, 2006 2:44 PM To: A. Kretschmer Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] Table Relationships On 10/31/06, A. Kretschmer > wrote: am Tue, dem 31.10.2006, um 21:08:24 +0100 mailte A. Kretschmer folgendes: > am Tue, dem 31.10.2006, um 13:32:59 -0600 mailte Aaron Bono folgendes: > > I would go further by adding a type table like this: > > > > operation_type ( > > operation_type_id bigserial (PK), > > You are sure, that you need bigserial? Hey, your idea is okay, but i think, we don't need *BIG*serial for this. Okay? Andreas Sorry, just force of habbit. Serial works or you can just drop the id and use the code as the primary key. You should at the very least put a unique constraint on the code field. -- ================================================================== Aaron Bono Aranya Software Technologies, Inc. http://www.aranya.com http://codeelixir.com ================================================================== ------_=_NextPart_001_01C6FD38.7E1180B0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable

Thanks for the = help.

 

=

From: = Aaron Bono [mailto:postgresql@aranya.com]
Sent: Tuesday, October = 31, 2006 2:44 PM
To: A. Kretschmer
Cc: = pgsql-sql@postgresql.org
Subject: Re: [SQL] Table Relationships

 

On 10/31/06, A. = Kretschmer <andreas.kretschmer@sch= ollglas.com> wrote:

am  Tue, dem 31.10.2006, um 21:08:24 +0100 mailte A. Kretschmer folgendes:
> am  Tue, dem 31.10.2006, um 13:32:59 -0600 mailte Aaron = Bono folgendes:
> > I would go further by adding a type table like this:
> >
> > operation_type (
> >     operation_type_id bigserial (PK),
>
> You are sure, that you need bigserial?

Hey, your idea is okay, but i think, we don't need *BIG*serial for = this.
Okay?


Andreas


Sorry, just force of habbit.  Serial works or you can just drop = the id and use the code as the primary key.  You should at the very least put = a unique constraint on the code field.

--
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =

------_=_NextPart_001_01C6FD38.7E1180B0--