pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Stark <gsstark@mit.edu>
Cc: Alexandre Leclerc <alexandre.leclerc@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Data type to use for primary key
Date: Wed, 24 Nov 2004 02:16:15 -0500
Message-ID: <5059.1101280575@sss.pgh.pa.us> (raw)
In-Reply-To: <87hdnfwxff.fsf@stark.xeocode.com>
References: <1dc7f0e30411221232603c4617@mail.gmail.com>
	<200411221654.56673.josh@agliodbs.com>
	<1dc7f0e30411230829bd1ed@mail.gmail.com>
	<87hdnfwxff.fsf@stark.xeocode.com>

Greg Stark <gsstark@mit.edu> writes:
> This could hurt if they ever reuse an old previously retired postal code,
> which isn't an entirely impossible case. As far as I know it hasn't happened
> yet though.

One would suppose that the guys who are in charge of this point at
Canada Post consider the postal code to be their primary key, and
are no more eager to reuse one than you are to see it reused.

Basically this comes down to "I'm going to use some externally supplied
primary key as my primary key.  Do I trust the upstream DBA to know what
a primary key is?"

			regards, tom lane



view thread (14+ messages)  latest in thread

Message-ID: <5059.1101280575@sss.pgh.pa.us>
Permalink:  ../5059.1101280575@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5059.1101280575@sss.pgh.pa.us

 · 

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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gsstark@mit.edu, alexandre.leclerc@gmail.com
  Subject: Re: Data type to use for primary key
  In-Reply-To: <5059.1101280575@sss.pgh.pa.us>

* 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