From: Martín Marqués <martin@bugs.unl.edu.ar>
To: pgsql-sql@postgresql.org
Subject: INT OR VARCHAR
Date: Wed, 5 Dec 2001 17:41:40 -0300
Message-ID: <20011205204142.AA74CFA61@bugs.unl.edu.ar> (raw)
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
-----------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: martin@bugs.unl.edu.ar
Subject: Re: INT OR VARCHAR
In-Reply-To: <20011205204142.AA74CFA61@bugs.unl.edu.ar>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox