Re: [GENERAL] Naming conventions for column names

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [GENERAL] Naming conventions for column names
Дата
Msg-id 4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [GENERAL] Naming conventions for column names  (Sachin Kotwal <kotsachin@gmail.com>)
Ответы Re: [GENERAL] Naming conventions for column names  (Sachin Kotwal <kotsachin@gmail.com>)
Список pgsql-general
On 11/6/17 05:36, Sachin Kotwal wrote:
> Is there any special reason to keep column names as usesysid
> and usename instead of usersysid and username in below system View?

The reason to *keep* them is compatibility.  The reason they are like
that to start with is because that is the naming pattern used in the
system catalogs: 3 letters indicating the catalog, plus additional
letters or words.  It is useful to use the same name in views such as
pg_stat_replication, so you can easily join different views and catalogs.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: Sachin Kotwal
Дата:
Сообщение: Re: [GENERAL] Naming conventions for column names
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [GENERAL] xmin increasing within a transaction block?