pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #7511: 9.2: pg_stat_activity.procpid renamed unnecessarily
3+ messages / 3 participants
[nested] [flat]
* BUG #7511: 9.2: pg_stat_activity.procpid renamed unnecessarily
@ 2012-08-30 04:34 i@avdd.co
0 siblings, 2 replies; 3+ messages in thread
From: i@avdd.co @ 2012-08-30 04:34 UTC (permalink / raw)
To: pgsql-bugs
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=4f42b546fd87a80be30c53a0f2c897acb8...
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()
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #7511: 9.2: pg_stat_activity.procpid renamed unnecessarily
@ 2012-08-30 13:37 Tom Lane <tgl@sss.pgh.pa.us>
parent: i@avdd.co
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2012-08-30 13:37 UTC (permalink / raw)
To: i@avdd.co; +Cc: pgsql-bugs
i@avdd.co writes:
> In trying 9.2 I find pg_stat_activity.procpid has been renamed to pid.
Yup. Sorry, that change is not going to get undone at this point.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #7511: 9.2: pg_stat_activity.procpid renamed unnecessarily
@ 2012-08-30 13:38 Bruce Momjian <bruce@momjian.us>
parent: i@avdd.co
1 sibling, 0 replies; 3+ messages in thread
From: Bruce Momjian @ 2012-08-30 13:38 UTC (permalink / raw)
To: i@avdd.co; +Cc: pgsql-bugs
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=4f42b546fd87a80be30c53a0f2c897acb8...
>
> 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 <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-08-30 13:38 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-08-30 04:34 BUG #7511: 9.2: pg_stat_activity.procpid renamed unnecessarily i@avdd.co
2012-08-30 13:37 ` Tom Lane <tgl@sss.pgh.pa.us>
2012-08-30 13:38 ` Bruce Momjian <bruce@momjian.us>
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