Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1clJed-0002m4-Pr for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Mar 2017 18:16:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1clJed-0002zp-0H for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Mar 2017 18:16:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1clJec-0002ys-88 for pgsql-bugs@postgresql.org; Tue, 07 Mar 2017 18:16:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1clJea-00058E-EG for pgsql-bugs@postgresql.org; Tue, 07 Mar 2017 18:16:09 +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 v27IG3Rb029114; Tue, 7 Mar 2017 13:16:03 -0500 From: Tom Lane To: Stepan Yankevych cc: "stepya@ukr.net" , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14581: invalid cache ID: 41 CONTEXT: parallel worker In-reply-to: References: <20170307141201.25060.95512@wrigleys.postgresql.org> <13884.1488902573@sss.pgh.pa.us> Comments: In-reply-to Stepan Yankevych message dated "Tue, 07 Mar 2017 18:01:49 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29112.1488910563.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 07 Mar 2017 13:16:03 -0500 Message-ID: <29113.1488910563@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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Stepan Yankevych writes: > It quite difficult to reproduce. > The only observation. Usually it crashes with parallelism only on quite b= ig tables with inheritance . If you can't extract a test case, one thing that would be quite helpful is to get a stack trace from the point of the error. There are only four occurrences of elog(ERROR, "invalid cache ID: %d", cacheId); and they're all in src/backend/utils/cache/syscache.c. If you could change those to elog(PANIC, ...) in a debug-enabled build, run till you get the failure, and then use gdb to get a backtrace from the ensuing core dump, that might be enough info to fix it. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs