Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZEzbD-0006e0-SM for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jul 2015 12:46:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZEzbD-0000YM-Do for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Jul 2015 12:46:15 +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 1ZEzab-0008Ip-VM for pgsql-bugs@postgresql.org; Tue, 14 Jul 2015 12:45:38 +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 1ZEzaZ-0001W1-Jx for pgsql-bugs@postgresql.org; Tue, 14 Jul 2015 12:45:36 +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 t6ECjWX3003091; Tue, 14 Jul 2015 08:45:32 -0400 From: Tom Lane To: Michael Bommarito cc: Michael Paquier , PostgreSQL mailing lists Subject: Re: BUG #13490: Segmentation fault on pg_stat_activity In-reply-to: References: <20150707165212.1188.60819@wrigleys.postgresql.org> <14297.1436652379@sss.pgh.pa.us> <13182.1436726274@sss.pgh.pa.us> Comments: In-reply-to Michael Bommarito message dated "Tue, 14 Jul 2015 08:21:56 -0400" Date: Tue, 14 Jul 2015 08:45:32 -0400 Message-ID: <3090.1436877932@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Michael Bommarito writes: > If you can provide a patch that performs input validation in > get_tle_by_resno and logs the condition, I can compile and test with it. Wouldn't prove anything one way or another. Somehow, a corrupt query tree is being fed to the planner; what we need to understand is what conditions cause that to happen. I doubt that getting more details at the point where the code trips over the corruption will teach us that. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs