pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Jim Nasby <Jim.Nasby@bluetreble.com>
Cc: Joel Jacobson <joel@trustly.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity.
Date: Sat, 12 Mar 2016 12:40:36 -0500
Message-ID: <29328.1457804436@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoYuzzhvimO-32eo3OR7PX1_3T0YjM_jBug1qqm7po1O8w@mail.gmail.com>
References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org>
	<CAFj8pRBDO-rbHgWoKVYuJkifa6zcTLFS9wfJ55ECeuqt8uAsaQ@mail.gmail.com>
	<CA+TgmoYujHaPmz9hqi4Meh2cNzzVErOi3ivyrvdd_dpY88BX6Q@mail.gmail.com>
	<CAFj8pRAjRzmdi6_NBfkQgZefbJ2s+i8g=us79GzCy9YQ=puLmg@mail.gmail.com>
	<CA+TgmobYq-8OMVPpLh=a9MVz_A=LTR89JYnfUmofdy_8c44dnA@mail.gmail.com>
	<CA+Tgmoa-w+px2=bo4Ye2qdZfJVA3LR7p0zco=L7L+UEbV-WrOA@mail.gmail.com>
	<CA+TgmoadfwY4npZh8ATW4CWFeB3uLpY9YmX18Z=UJmxUnBQVLw@mail.gmail.com>
	<15170.1457651842@sss.pgh.pa.us>
	<CAASwCXft4JSXmcBHkmbtc-kGe+v-o8HMqp53zm63je4OjFLvdQ@mail.gmail.com>
	<CA+TgmoZQ7xawzh2K+DX7wRYjaiKHwQ61bRrysKJqFeTrNX6Ltw@mail.gmail.com>
	<56E35541.1060905@BlueTreble.com>
	<CA+TgmoYuzzhvimO-32eo3OR7PX1_3T0YjM_jBug1qqm7po1O8w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Robert Haas <robertmhaas@gmail.com> writes:
> You could also argue that's a compatibility break, because people may
> have logic that assumes that a wait is always a heavyweight lock wait.
> If we keep the column but change the meaning, people who need to
> update their scripts may fail to notice.  Hard breaks aren't that fun,
> but at least you don't fail to notice that something needs to be
> changed.

Yes.  My recollection of the argument for the earlier renames of
pg_stat_activity columns is that it was basically the same thing:
we changed the semantics of these columns, you are very likely to
need to adjust your queries, so we'll change the column names to
make sure you notice.  There's always a tradeoff there.  Maybe you
won't need to adjust your queries, but maybe they'll break silently.

In this case I agree with the feeling that people probably took
waiting == true as an indication that there was a matching entry
in pg_locks, so the odds of subtle breakage if we keep the name
the same while changing the semantics are pretty high.  Or we
could keep the semantics the same (waiting is true only for
heavyweight-lock waits) but that was mighty ugly too.

In short: we've already been over this territory, at length,
and I am not excited by people trying to bikeshed it again
after the fact, especially when no new arguments are being
presented.  Can we call the discussion closed, please?

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (33+ messages)  latest in thread

Message-ID: <29328.1457804436@sss.pgh.pa.us>
Permalink:  ../29328.1457804436@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29328.1457804436@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, Jim.Nasby@bluetreble.com, joel@trustly.com, pavel.stehule@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity.
  In-Reply-To: <29328.1457804436@sss.pgh.pa.us>
  References: <E1ae5kR-0007wV-LY@gemulon.postgresql.org> <CAFj8pRBDO-rbHgWoKVYuJkifa6zcTLFS9wfJ55ECeuqt8uAsaQ@mail.gmail.com> <CA+TgmoYujHaPmz9hqi4Meh2cNzzVErOi3ivyrvdd_dpY88BX6Q@mail.gmail.com> <CAFj8pRAjRzmdi6_NBfkQgZefbJ2s+i8g=us79GzCy9YQ=puLmg@mail.gmail.com> <CA+TgmobYq-8OMVPpLh=a9MVz_A=LTR89JYnfUmofdy_8c44dnA@mail.gmail.com> <CA+Tgmoa-w+px2=bo4Ye2qdZfJVA3LR7p0zco=L7L+UEbV-WrOA@mail.gmail.com> <CA+TgmoadfwY4npZh8ATW4CWFeB3uLpY9YmX18Z=UJmxUnBQVLw@mail.gmail.com> <15170.1457651842@sss.pgh.pa.us> <CAASwCXft4JSXmcBHkmbtc-kGe+v-o8HMqp53zm63je4OjFLvdQ@mail.gmail.com> <CA+TgmoZQ7xawzh2K+DX7wRYjaiKHwQ61bRrysKJqFeTrNX6Ltw@mail.gmail.com> <56E35541.1060905@BlueTreble.com> <CA+TgmoYuzzhvimO-32eo3OR7PX1_3T0YjM_jBug1qqm7po1O8w@mail.gmail.com> <29328.1457804436@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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