Re: Inefficient query plan

From: <gnuoytr(at)rcn(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Inefficient query plan
Date: 2010-08-23 15:22:46
Message-ID: 20100823112246.AID25735@ms14.lnh.mail.rcn.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>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

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2010-08-23 16:20:34 Re: Inefficient query plan
Previous Message Tom Lane 2010-08-23 15:20:55 Re: Inefficient query plan