pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Sachin Kotwal <kotsachin@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: Naming conventions for column names
Date: Mon, 6 Nov 2017 07:51:35 -0500
Message-ID: <4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com> (raw)
In-Reply-To: <CA+N_YAcazMuWH-cUT_cKMxFP7rAbsjaFOFGs_KLDKrNbD-k9yw@mail.gmail.com>
References: <CA+N_YAf3Bywmo_caFWXfFh6P20=T6CRkMexx+FSM=aEt6ikenQ@mail.gmail.com>
	<CA+N_YAcazMuWH-cUT_cKMxFP7rAbsjaFOFGs_KLDKrNbD-k9yw@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (14+ messages)  latest in thread

Message-ID: <4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com>
Permalink:  ../4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com/
Also on:    postgresql.org/message-id/4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, kotsachin@gmail.com
  Subject: Re: Naming conventions for column names
  In-Reply-To: <4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com>
  References: <CA+N_YAf3Bywmo_caFWXfFh6P20=T6CRkMexx+FSM=aEt6ikenQ@mail.gmail.com> <CA+N_YAcazMuWH-cUT_cKMxFP7rAbsjaFOFGs_KLDKrNbD-k9yw@mail.gmail.com> <4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox