Re: [GENERAL] Naming conventions for column names - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: [GENERAL] Naming conventions for column names
Date
Msg-id 4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com
Whole thread Raw
In response to Re: [GENERAL] Naming conventions for column names  (Sachin Kotwal <kotsachin@gmail.com>)
Responses Re: [GENERAL] Naming conventions for column names
List 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 by date:

Previous
From: Sachin Kotwal
Date:
Subject: Re: [GENERAL] Naming conventions for column names
Next
From: Alvaro Herrera
Date:
Subject: Re: [GENERAL] xmin increasing within a transaction block?