Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6wSY-0007Ps-28 for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 04:34:26 +0000 Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6wST-0007fm-RF for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 04:34:25 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T6wSR-00084L-Aa for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 04:34:20 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1T6wSQ-0005kN-LD for pgsql-bugs@postgresql.org; Thu, 30 Aug 2012 04:34:18 +0000 Date: Thu, 30 Aug 2012 04:34:18 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #7511: 9.2: pg_stat_activity.procpid renamed unnecessarily To: pgsql-bugs@postgresql.org From: i@avdd.co X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201208/239 X-Sequence-Number: 33963 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=3Dpostgresql.git;a=3Dcommitdiff;h=3D4f4= 2b546fd87a80be30c53a0f2c897acb826ad52 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()