Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aenYE-0000hu-OE for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Mar 2016 17:42:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aenYE-00006j-8B for pgsql-hackers@arkaria.postgresql.org; Sat, 12 Mar 2016 17:42:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aenWs-0005wF-3f for pgsql-hackers@postgresql.org; Sat, 12 Mar 2016 17:40:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aenWp-0003Jd-Km for pgsql-hackers@postgresql.org; Sat, 12 Mar 2016 17:40:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2CHeabL029329; Sat, 12 Mar 2016 12:40:36 -0500 From: Tom Lane To: Robert Haas cc: Jim Nasby , Joel Jacobson , Pavel Stehule , "pgsql-hackers@postgresql.org" Subject: Re: [COMMITTERS] pgsql: Provide much better wait information in pg_stat_activity. In-reply-to: References: <15170.1457651842@sss.pgh.pa.us> <56E35541.1060905@BlueTreble.com> Comments: In-reply-to Robert Haas message dated "Sat, 12 Mar 2016 12:19:30 -0500" Date: Sat, 12 Mar 2016 12:40:36 -0500 Message-ID: <29328.1457804436@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas 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