Re: Geographic data sources, queries and questions

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Geographic data sources, queries and questions
Дата
Msg-id B5E092C1-0264-4AC5-969E-42D6AD2E89FF@seespotcode.net
обсуждение исходный текст
Ответ на Re: Geographic data sources, queries and questions  ("John D. Burger" <john@mitre.org>)
Ответы Re: Geographic data sources, queries and questions  (Ron Johnson <ron.l.johnson@cox.net>)
Список 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 по дате отправления:

Предыдущее
От: brsaweda@gmail.com
Дата:
Сообщение: SELECT from mytbl;
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: 8.3