Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T74wl-0003VV-Lu for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 13:38:11 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T74we-00072W-Fe for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 13:38:11 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1T74wc-0000Xh-Gb; Thu, 30 Aug 2012 09:38:02 -0400 Date: Thu, 30 Aug 2012 09:38:02 -0400 From: Bruce Momjian To: i@avdd.co Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7511: 9.2: pg_stat_activity.procpid renamed unnecessarily Message-ID: <20120830133802.GL8753@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/241 X-Sequence-Number: 33965 On Thu, Aug 30, 2012 at 04:34:18AM +0000, i@avdd.co wrote: > The following bug has been logged on the website: > > Bug reference: 7511 > Logged by: Adrian Dries > Email address: i@avdd.co > PostgreSQL version: Unsupported/Unknown > Operating system: any > Description: > > In trying 9.2 I find pg_stat_activity.procpid has been renamed to pid. > > http://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=4f42b546fd87a80be30c53a0f2c897acb826ad52 > > It seems the premise of this is > > If we're going to rename current_query to query--what Scott's patch does > here--that will force all code using pg_stat_activity to be rewritten. This > seems like the perfect time to also change "procpid" to "pid", finally blow > away that wart. > > A premise that is untrue: changing a subset of columns on a relation does > not force "all code" using that relation to be rewritten: > > SELECT procpid FROM pg_stat_activity WHERE procpid <> pg_backend_pid() True. We were thinking more of tools that display all pg_stat_activity columns. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +