| From: | Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar> |
|---|---|
| To: | <pgsql-sql(at)postgresql(dot)org> |
| Subject: | INT OR VARCHAR |
| Date: | 2001-12-05 20:41:40 |
| Message-ID: | 20011205204142.AA74CFA61@bugs.unl.edu.ar |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
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(at)unl(dot)edu(dot)ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Aasmund Midttun Godal | 2001-12-05 21:03:56 | Re: INT OR VARCHAR |
| Previous Message | Roberto Mello | 2001-12-05 19:37:03 | Getting matching and non-matching results (long) |