Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fB5Khtm98900 for ; Wed, 5 Dec 2001 15:43:55 -0500 (EST) (envelope-from martin@bugs.unl.edu.ar) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id EA23BFBE0 for ; Wed, 5 Dec 2001 17:41:43 -0300 (GMT) Received: by bugs.unl.edu.ar (Postfix, from userid 1004) id AA74CFA61; Wed, 5 Dec 2001 17:41:42 -0300 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= To: Subject: INT OR VARCHAR Date: Wed, 5 Dec 2001 17:41:40 -0300 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011205204142.AA74CFA61@bugs.unl.edu.ar> X-Virus-Scanned: by AMaViS snapshot-20011031 X-Archive-Number: 200112/55 X-Sequence-Number: 5878 I have a table that will be populated with machines of a net we have. And we have more then 1 domain, so we thought about putting a seperate table with the domains, and a reference in the nodes table to the apropiate domain. The question is, should I put an SERIAL field in the domain table and use that as the PK, and use an INT reference in the nodes table? Or is it a good idea to just leave the domain name (a CHAR(30) field) in the domain table and make the node.domain a CHAR(30) that references to domain.name? What would be the best approche? Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------