pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gnuoytr@rcn.com
To: pgsql-performance@postgresql.org
Subject: Re: Inefficient query plan
Date: Mon, 23 Aug 2010 11:22:46 -0400 (EDT)
Message-ID: <20100823112246.AID25735@ms14.lnh.mail.rcn.net> (raw)

>I may be a little bit over-sensitive on the topic, because I've seen
>so many people who consider it "wrong" to use natural keys on any
>table *ever*.  About one out of every four or five programmers who
>gets hired here feels compelled to argue that we should add
>surrogate keys to all our tables for no reason beyond "it's the
>thing to do".  I've been at this for 38 years, most of that as a
>consultant to a wide variety of businesses, government agencies, and
>NPOs; and in my experience it usually is *not* the right thing to
>do.
> 
>Don't worry -- when I see evidence that surrogate keys will solve a
>problem which has not yielded to more conservative solutions, I'll
>suggest using them.
> 
>-Kevin
>

Ah feeel your pain, brother.  Been there, done that.  In almost every case, those who make the "thou shalt always, and only, use a surrogate key" cite folks like Ambler as authoritative rather than folks like Date.  The Kiddie Koder Krew are woefully uninformed about the history and development of RDBMS, and why some approaches are more intelligent than others.  Ambler, et al coders all, have poisoned more minds than can be counted.

Dijkstra called out BASIC and COBOL for polluting the minds of young coders.  Allowing Ambler and the like to be "thought leaders" in RDBMS is just as polluting.

There, I said.

-- Robert



view thread (23+ messages)  latest in thread

Message-ID: <20100823112246.AID25735@ms14.lnh.mail.rcn.net>
Permalink:  ../20100823112246.AID25735@ms14.lnh.mail.rcn.net/
Also on:    postgresql.org/message-id/20100823112246.AID25735@ms14.lnh.mail.rcn.net

 · 

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: gnuoytr@rcn.com
  Subject: Re: Inefficient query plan
  In-Reply-To: <20100823112246.AID25735@ms14.lnh.mail.rcn.net>

* 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