Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijSm1-0002gW-Cm for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Dec 2019 18:49:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ijSlz-0007a3-AT for pgsql-bugs@arkaria.postgresql.org; Mon, 23 Dec 2019 18:49:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ijSly-0007Yk-VB for pgsql-bugs@lists.postgresql.org; Mon, 23 Dec 2019 18:49:43 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ijSls-0003dt-FC for pgsql-bugs@lists.postgresql.org; Mon, 23 Dec 2019 18:49:41 +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 xBNInWpt019152; Mon, 23 Dec 2019 13:49:32 -0500 From: Tom Lane To: Joe Conway cc: ipluta@wp.pl, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #16176: NULL value returned by category_sql argument to crosstab() causes segmentation fault In-reply-to: <208f13a0-0433-6780-802d-fedcff3c8991@joeconway.com> References: <16176-7489719b05e4303c@postgresql.org> <8638.1576864859@sss.pgh.pa.us> <8d8ef71e-a347-67be-696a-3bdd259ec9fb@joeconway.com> <12400.1576940917@sss.pgh.pa.us> <208f13a0-0433-6780-802d-fedcff3c8991@joeconway.com> Comments: In-reply-to Joe Conway message dated "Mon, 23 Dec 2019 13:40:34 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19150.1577126972.1@sss.pgh.pa.us> Date: Mon, 23 Dec 2019 13:49:32 -0500 Message-ID: <19151.1577126972@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Joe Conway writes: > Pushed that way to all supported branches. Hmm, why'd you use ERRCODE_SYNTAX_ERROR, and not say ERRCODE_NULL_VALUE_NOT_ALLOWED? regards, tom lane