pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Robert Haas <robertmhaas@gmail.com>
To: Joel Jacobson <joel@trustly.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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: Fri, 11 Mar 2016 17:31:13 -0600
Message-ID: <56E35541.1060905@BlueTreble.com> (raw)
In-Reply-To: <CA+TgmoZQ7xawzh2K+DX7wRYjaiKHwQ61bRrysKJqFeTrNX6Ltw@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 3/10/16 8:36 PM, Robert Haas wrote:
> 1. We make it true only for heavyweight lock waits, and false for
> other kinds of waits.  That's pretty strange.
> 2. We make it true for all kinds of waits that we now know how to
> report.  That still breaks compatibility.

I would absolutely vote for 2 here. You could even argue that it's a bug 
fix, since those were waits we technically should have been indicating.

The only way I can see #2 breaking anything is if you're using 
waiting=true to determine whether you look at pg_locks and your code 
will blow up if you get no rows back, but that seems like a pretty 
limited use case to me (Hello, LEFT JOIN).

Dropping the column entirely though would break tons of things.

Another random thought... changes like this would probably be easier to 
handle if we provided backwards compatibility extensions that created 
views that mimicked the catalog for a specific Postgres version.
-- 
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com


-- 
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: <56E35541.1060905@BlueTreble.com>
Permalink:  ../56E35541.1060905@BlueTreble.com/
Also on:    postgresql.org/message-id/56E35541.1060905@BlueTreble.com

 · 

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: Jim.Nasby@BlueTreble.com, robertmhaas@gmail.com, joel@trustly.com, tgl@sss.pgh.pa.us, pavel.stehule@gmail.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity.
  In-Reply-To: <56E35541.1060905@BlueTreble.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>

* 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