Skip site navigation (1) Skip section navigation (2)

Re: Data type to use for primary key

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Alexandre Leclerc <alexandre(dot)leclerc(at)gmail(dot)com>,pgsql-performance(at)postgresql(dot)org
Subject: Re: Data type to use for primary key
Date: 2004-11-24 07:16:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
Greg Stark <gsstark(at)mit(dot)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

In response to


pgsql-performance by date

Next:From: Leeuw van der, TimDate: 2004-11-24 07:34:41
Subject: Re: FW: Index usage
Previous:From: Greg StarkDate: 2004-11-24 06:52:52
Subject: Re: Data type to use for primary key

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group