From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: dmitry.chirkin@gmail.com
Subject: BUG #15149: Invalid cache id = 42
Date: Tue, 10 Apr 2018 15:55:04 +0000
Message-ID: <152337570402.31228.237601111670899842@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15149
Logged by: Dmitry Chirkin
Email address: dmitry.chirkin@gmail.com
PostgreSQL version: 10.3
Operating system: Debian
Description:
After upgrading to 10.3 I have found strange issue with
pg_try_advisory_lock
Here is my simplified workflow which is executed every minute:
1. TX start
2. select pg_try_advisory_lock(42) as lock; // we have several workers so we
don't want to start more than one simultaneously.
if lock is true -> continue, else -> rollback and finish.
3. Make a query via oracle_fdw, usually return 70-80 rows.
4. insert on conflict update in table1.
5. run some analyze query with several CTE's -> insert some artifacts into
table2.
6. run another one analyze query with several CTE's -> inserts some
artifacts into table 2.
7. TX commit.
So, few days ago i've added step 6 and on step 7 i'm getting error: Invalid
cache id: 42
On 10.2 everything working fine but on 10.3 - i'm getting error.
I'm not sure it's possible to provide good steps to reproduce with plain SQL
queries because of fdw but maybe this would be enough to understand what is
the reason for issue.
Thank you!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, dmitry.chirkin@gmail.com
Subject: Re: BUG #15149: Invalid cache id = 42
In-Reply-To: <152337570402.31228.237601111670899842@wrigleys.postgresql.org>
References: <152337570402.31228.237601111670899842@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox