Re: Obsolete reference to pg_relation in comment

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Obsolete reference to pg_relation in comment
Дата
Msg-id 20230726185306.GB3310393@nathanxps13
обсуждение исходный текст
Ответ на Obsolete reference to pg_relation in comment  (Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>)
Ответы Re: Obsolete reference to pg_relation in comment
Список pgsql-hackers
On Wed, Jul 26, 2023 at 06:48:51PM +0100, Dagfinn Ilmari Mannsåker wrote:
> Triggered by a discussion on IRC, I noticed that there's a stray
> reference to pg_relation in a comment that was added long after it was
> renamed to pg_class.  Here's a patch to bring that up to speed.

> pg_relation was renamed to pg_class in 1991, but this comment (added
> in 2004) missed the memo

Huh, interesting!  I dug around the Berkeley archives [0] and found
comments indicating that pg_relation was renamed to pg_class in Februrary
1990.  However, it looks like the file was named pg_relation.h until
Postgres95 v0.01, which has the following comment in pg_class.h:

     *    ``pg_relation'' is being replaced by ``pg_class''.  currently
     *    we are only changing the name in the catalogs but someday the
     *    code will be changed too. -cim 2/26/90
     *    [it finally happens.  -ay 11/5/94]

[0] https://dsf.berkeley.edu/postgres.html

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Dagfinn Ilmari Mannsåker
Дата:
Сообщение: Obsolete reference to pg_relation in comment
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: incremental-checkopints