Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9DWQ-0005Pd-KM for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Jun 2016 15:29:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b9DWP-0006RJ-Bn for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Jun 2016 15:29:57 +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 1b9DWN-0006RA-Ob for pgsql-hackers@postgresql.org; Sat, 04 Jun 2016 15:29:55 +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_2) (envelope-from ) id 1b9DWH-0008US-1f for pgsql-hackers@postgresql.org; Sat, 04 Jun 2016 15:29:54 +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 u54FTfq5014250; Sat, 4 Jun 2016 11:29:41 -0400 From: Tom Lane To: Michael Paquier cc: Andreas Seltenreich , Piotr Stefaniak , PostgreSQL mailing lists Subject: Re: [sqlsmith] Failed assertion in joinrels.c In-reply-to: References: <87wpxfygg9.fsf@credativ.de> <15630.1438391483@sss.pgh.pa.us> <87614zxroq.fsf@credativ.de> <2086.1438444757@sss.pgh.pa.us> <13027.1438546710@sss.pgh.pa.us> <87egjhv9j8.fsf@credativ.de> <8205.1438906901@sss.pgh.pa.us> Comments: In-reply-to Michael Paquier message dated "Sat, 04 Jun 2016 21:29:33 +0900" Date: Sat, 04 Jun 2016 11:29:41 -0400 Message-ID: <14249.1465054181@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-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Michael Paquier writes: > This is still failing: > =# select indexdef from pg_catalog.pg_indexes where indexdef is not NULL; > ERROR: XX000: cache lookup failed for index 2619 > LOCATION: pg_get_indexdef_worker, ruleutils.c:1054 > Do we want to improve at least the error message? Maybe we should just make the function silently return NULL if the OID doesn't refer to an index relation. There's precedent for that sort of behavior ... 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