Re: Geographic data sources, queries and questions - Mailing list pgsql-general

From Michael Glaesemann
Subject Re: Geographic data sources, queries and questions
Date
Msg-id B5E092C1-0264-4AC5-969E-42D6AD2E89FF@seespotcode.net
Whole thread Raw
In response to Re: Geographic data sources, queries and questions  ("John D. Burger" <john@mitre.org>)
Responses Re: Geographic data sources, queries and questions
List pgsql-general
On May 29, 2007, at 15:28 , John D. Burger wrote:

> Even ISO country codes are not guaranteed to be stable

I'm not sure where the idea that primary keys must be stable comes
from. There's nothing necessarily wrong with updating a primary key.
All a primary key does is uniquely identify a row in a table. If that
id changes over time, that's fine, as long as the primary key columns
continue to uniquely identify each row in the table. SQL even
provides ON UPDATE CASCADE to make this convenient. There may be
performance arguments against updating a primary key (as the changes
need to propagate), but that depends on the needs of a particular
(benchmarked and tested) application environment.

Michael Glaesemann
grzm seespotcode net



pgsql-general by date:

Previous
From: brsaweda@gmail.com
Date:
Subject: SELECT from mytbl;
Next
From: Raymond O'Donnell
Date:
Subject: 8.3