pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: Unique Constraint with foreign Key
Date: Mon, 17 May 2004 18:51:13 +0200
Message-ID: <20040517185113.B592@hermes.hilbert.loc> (raw)
In-Reply-To: <20040210201521.GA13737@wolff.to>
References: <64366.138.88.163.115.1076432616.squirrel@physics.gmu.edu>
	<20040210201521.GA13737@wolff.to>

> > or Can i have varchar types  of size 50 as primary keys in Postgres.
> Yes. But unless the 50 character limit comes from a business rule, you
> might want to use the type 'text'.
And if that limit does come from a business rule you might want
to think twice whether using columns constrained by business
rules are good candidates for primary keys.

Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



view thread (6+ messages)

Message-ID: <20040517185113.B592@hermes.hilbert.loc>
Permalink:  ../20040517185113.B592@hermes.hilbert.loc/
Also on:    postgresql.org/message-id/20040517185113.B592@hermes.hilbert.loc

 · 

reply

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: Karsten.Hilbert@gmx.net
  Subject: Re: Unique Constraint with foreign Key
  In-Reply-To: <20040517185113.B592@hermes.hilbert.loc>

* 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