Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMy5I-0001EA-IO for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Dec 2017 15:27:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMy5H-0005UI-H3 for pgsql-bugs@arkaria.postgresql.org; Thu, 07 Dec 2017 15:27:35 +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_2) (envelope-from ) id 1eMy5H-0005U8-8Q for pgsql-bugs@lists.postgresql.org; Thu, 07 Dec 2017 15:27:35 +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.89) (envelope-from ) id 1eMy5D-0006bh-Rk for pgsql-bugs@postgresql.org; Thu, 07 Dec 2017 15:27:33 +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 vB7FROC8005162; Thu, 7 Dec 2017 10:27:24 -0500 From: Tom Lane To: steven.winfield@cantabcapital.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14953: pg_blocking_pids / array_length inconsistency In-reply-to: <20171207144028.21691.76008@wrigleys.postgresql.org> References: <20171207144028.21691.76008@wrigleys.postgresql.org> Comments: In-reply-to steven.winfield@cantabcapital.com message dated "Thu, 07 Dec 2017 14:40:28 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5160.1512660444.1@sss.pgh.pa.us> Date: Thu, 07 Dec 2017 10:27:24 -0500 Message-ID: <5161.1512660444@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk steven.winfield@cantabcapital.com writes: > It seems as though pg_blocking_pids() can return a zero-length, > one-dimensional array whereas users can only create NULL-length, > zero-dimensional arrays (even though the type suggests it is one > dimensional: 'integer[]') This has been fixed recently in HEAD: https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=716ea626a but we decided not to back-patch the change. regards, tom lane