Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGiY6-0005pb-PT for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Nov 2017 09:39:30 +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 1eGiY6-00024X-Bq for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Nov 2017 09:39:30 +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 1eGiY6-00024N-75 for pgsql-bugs@lists.postgresql.org; Mon, 20 Nov 2017 09:39:30 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eGiY2-0003FP-8I for pgsql-bugs@postgresql.org; Mon, 20 Nov 2017 09:39:29 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 72E7746B8E; Mon, 20 Nov 2017 10:39:24 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter02.heinlein-hosting.de (spamfilter02.heinlein-hosting.de [80.241.56.116]) (amavisd-new, port 10030) with ESMTP id CEvvonmgm0Sz; Mon, 20 Nov 2017 10:39:15 +0100 (CET) Message-ID: <1511170753.2615.4.camel@cybertec.at> Subject: Re: BUG #14581: invalid cache ID: 41 CONTEXT: parallel worker From: Laurenz Albe To: stepya@ukr.net, pgsql-bugs@postgresql.org Date: Mon, 20 Nov 2017 10:39:13 +0100 In-Reply-To: <20170307141201.25060.95512@wrigleys.postgresql.org> References: <20170307141201.25060.95512@wrigleys.postgresql.org> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk stepya@ukr.net wrote: > The following bug has been logged on the website: > > Bug reference: 14581 > Logged by: Stepan Yankevych > Email address: stepya@ukr.net > PostgreSQL version: 9.6.2 > Operating system: RedHat > Description: > > Time to time i have invalid cache ID: 41 while running simple query with > parallelism. > for example > select count(1) from client_order where date_id = 20170301; > Crashes with (see error log) > > < 2017-03-07 08:57:45.312 EST >ERROR: invalid cache ID: 41 > < 2017-03-07 08:57:45.312 EST >ERROR: invalid cache ID: 41 > < 2017-03-07 08:57:45.312 EST >ERROR: invalid cache ID: 41 > < 2017-03-07 08:57:45.312 EST >ERROR: invalid cache ID: 41 > < 2017-03-07 08:57:45.312 EST >ERROR: invalid cache ID: 41 > < 2017-03-07 08:57:45.312 EST [unknown] SELECT>ERROR: invalid cache ID: 41 > > < 2017-03-07 08:57:45.312 EST [unknown] SELECT>CONTEXT: parallel worker > < 2017-03-07 08:57:45.312 EST [unknown] SELECT>STATEMENT: select count(1) Could it be that the oracle_fdw extension was loaded? There was a bug reported yesterday that would explain this error: https://github.com/laurenz/oracle_fdw/issues/215 If oracle_fdw is involved, the latest commit should fix the problem. Yours, Laurenz Albe