pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #12746: Backward compatibility is broken 9.2: pg_stat_activity.procpid renamed to pid
4+ messages / 4 participants
[nested] [flat]
* BUG #12746: Backward compatibility is broken 9.2: pg_stat_activity.procpid renamed to pid
@ 2015-02-08 22:43 nad2000@gmail.com
0 siblings, 2 replies; 4+ messages in thread
From: nad2000@gmail.com @ 2015-02-08 22:43 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 12746
Logged by: Rad Cirskis
Email address: nad2000@gmail.com
PostgreSQL version: 9.2.0
Operating system: Linux
Description:
I run an app that should support both 9.0 and 9.4. I found that at 9.2 the
pg_stat_activity column porcpid was renamed to pid. It broke the app. To
solve it I had to introduce conditional querying for different versions.
I don't think it's right time to do any aesthetically motivated changes at
this stage.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #12746: Backward compatibility is broken 9.2: pg_stat_activity.procpid renamed to pid
@ 2015-02-08 22:46 Marko Tiikkaja <marko@joh.to>
parent: nad2000@gmail.com
1 sibling, 1 reply; 4+ messages in thread
From: Marko Tiikkaja @ 2015-02-08 22:46 UTC (permalink / raw)
To: nad2000@gmail.com; pgsql-bugs
On 2015-02-08 23:43, nad2000@gmail.com wrote:
> I run an app that should support both 9.0 and 9.4. I found that at 9.2 the
> pg_stat_activity column porcpid was renamed to pid. It broke the app. To
> solve it I had to introduce conditional querying for different versions.
> I don't think it's right time to do any aesthetically motivated changes at
> this stage.
9.2 was released over two years ago. I think it was a mistake to rename
it, but it's a bit too late object. Renaming it back to "procpid"
wouldn't help anyone.
.m
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #12746: Backward compatibility is broken 9.2: pg_stat_activity.procpid renamed to pid
@ 2015-02-08 23:00 Andres Freund <andres@2ndquadrant.com>
parent: Marko Tiikkaja <marko@joh.to>
0 siblings, 0 replies; 4+ messages in thread
From: Andres Freund @ 2015-02-08 23:00 UTC (permalink / raw)
To: Marko Tiikkaja <marko@joh.to>; +Cc: nad2000@gmail.com; pgsql-bugs
On 2015-02-08 23:46:43 +0100, Marko Tiikkaja wrote:
> On 2015-02-08 23:43, nad2000@gmail.com wrote:
> >I run an app that should support both 9.0 and 9.4. I found that at 9.2 the
> >pg_stat_activity column porcpid was renamed to pid. It broke the app. To
> >solve it I had to introduce conditional querying for different versions.
> >I don't think it's right time to do any aesthetically motivated changes at
> >this stage.
What do you mean with "at this stage"? 9.2 was a new major release, and
we don't guarantee compatibilities between major releases.
> 9.2 was released over two years ago. I think it was a mistake to rename it,
> but it's a bit too late object. Renaming it back to "procpid" wouldn't help
> anyone.
I agree that it wasn't a good idea and that it's too late to change it
now.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #12746: Backward compatibility is broken 9.2: pg_stat_activity.procpid renamed to pid
@ 2015-02-08 23:01 Tom Lane <tgl@sss.pgh.pa.us>
parent: nad2000@gmail.com
1 sibling, 0 replies; 4+ messages in thread
From: Tom Lane @ 2015-02-08 23:01 UTC (permalink / raw)
To: nad2000@gmail.com; +Cc: pgsql-bugs
nad2000@gmail.com writes:
> I run an app that should support both 9.0 and 9.4. I found that at 9.2 the
> pg_stat_activity column porcpid was renamed to pid. It broke the app. To
> solve it I had to introduce conditional querying for different versions.
> I don't think it's right time to do any aesthetically motivated changes at
> this stage.
The commit log entry about that provides a bit of context:
commit 4f42b546fd87a80be30c53a0f2c897acb826ad52
Author: Magnus Hagander <magnus@hagander.net>
Date: Thu Jan 19 14:19:20 2012 +0100
Separate state from query string in pg_stat_activity
This separates the state (running/idle/idleintransaction etc) into
it's own field ("state"), and leaves the query field containing just
query text.
The query text will now mean "current query" when a query is running
and "last query" in other states. Accordingly,the field has been
renamed from current_query to query.
Since backwards compatibility was broken anyway to make that, the procpid
field has also been renamed to pid - along with the same field in
pg_stat_replication for consistency.
Scott Mead and Magnus Hagander, review work from Greg Smith
Basically the point being that you're going to need some version
conditionality *anyway* in pretty much any app using this view.
In any case, as Marko noted, you're about three years too late to complain
about this. We're certainly not changing back now.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2015-02-08 23:01 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-02-08 22:43 BUG #12746: Backward compatibility is broken 9.2: pg_stat_activity.procpid renamed to pid nad2000@gmail.com
2015-02-08 22:46 ` Marko Tiikkaja <marko@joh.to>
2015-02-08 23:00 ` Andres Freund <andres@2ndquadrant.com>
2015-02-08 23:01 ` Tom Lane <tgl@sss.pgh.pa.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