Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBgud-0000ip-RG for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 12:53:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eBgud-00069m-7X for pgsql-general@arkaria.postgresql.org; Mon, 06 Nov 2017 12:53:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBgsN-0001ZU-Bj for pgsql-general@postgresql.org; Mon, 06 Nov 2017 12:51:39 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBgsK-0005Ma-NJ for pgsql-general@postgresql.org; Mon, 06 Nov 2017 12:51:38 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7E73620A86; Mon, 6 Nov 2017 07:51:35 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Mon, 06 Nov 2017 07:51:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=RhOxd6 5fbdOpW5gNyemzDDuaUyaLKDkyqcVRgFWzC1k=; b=eq6bhFhzdb3qxy6bA8JZLm 6MD6NUggN/fRcIaxIooxEX2oeErqUQV/BYPhzJMRJTAA2w6BudsxDDey8BViNztu lYMf2lGGu3906XeOfU1uwT0fiaDT6FRdnaTBpP+am0sj0ddiNXUPYiWMNEz5G7Ps ORz6x/Qq9hBIyRq3xx0MBev4zEjhjc7fGhTOfzrEQPSLysAhgTUt8j0NCDZNysoN SdxHtK+upSzW/4Xr6bBWuaNqLtr0V7cKFRgLQtb+dHRRinNT/ZWEOJD0oJOFSRTm SUtebrUz9x1KlYZsSKDMdymwgAafHEa3nog/31E+sY8TaJZuET1jwtTRDaYH+9Bw == X-ME-Sender: Received: from april.local (itsb230.itsnpt.com [64.119.81.230]) by mail.messagingengine.com (Postfix) with ESMTPA id 56EA77E6B8; Mon, 6 Nov 2017 07:51:35 -0500 (EST) Subject: Re: Naming conventions for column names To: Sachin Kotwal , pgsql-general@postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <4b129b1b-f5af-d007-30e4-9be9cacf175f@2ndquadrant.com> Date: Mon, 6 Nov 2017 07:51:35 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org 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