pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #15149: Invalid cache id = 42
4+ messages / 3 participants
[nested] [flat]
* BUG #15149: Invalid cache id = 42
@ 2018-04-10 15:55 PG Bug reporting form <noreply@postgresql.org>
2018-04-10 16:11 ` Re: BUG #15149: Invalid cache id = 42 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: PG Bug reporting form @ 2018-04-10 15:55 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: dmitry.chirkin@gmail.com
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!
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #15149: Invalid cache id = 42
2018-04-10 15:55 BUG #15149: Invalid cache id = 42 PG Bug reporting form <noreply@postgresql.org>
@ 2018-04-10 16:11 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-04-11 14:01 ` Re: BUG #15149: Invalid cache id = 42 Chirkin Dmitry <dmitry.chirkin@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2018-04-10 16:11 UTC (permalink / raw)
To: dmitry.chirkin@gmail.com; +Cc: pgsql-bugs@lists.postgresql.org
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> 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.
Odd. Could you set a breakpoint at errfinish() and get a backtrace
from the point of the error?
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #15149: Invalid cache id = 42
2018-04-10 15:55 BUG #15149: Invalid cache id = 42 PG Bug reporting form <noreply@postgresql.org>
2018-04-10 16:11 ` Re: BUG #15149: Invalid cache id = 42 Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-04-11 14:01 ` Chirkin Dmitry <dmitry.chirkin@gmail.com>
2018-04-11 14:18 ` Re: BUG #15149: Invalid cache id = 42 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Chirkin Dmitry @ 2018-04-11 14:01 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs@lists.postgresql.org
Oh, I’m just a nodejs developer, is there any instructions which I can follow to achieve this?
More details to come: cleaning table2 solves the issue. But this is not the case for production envs beacause this data is really important. Will try with vacuum full.
> 10 апр. 2018 г., в 19:11, Tom Lane <tgl@sss.pgh.pa.us> написал(а):
>
> =?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
>> 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.
>
> Odd. Could you set a breakpoint at errfinish() and get a backtrace
> from the point of the error?
>
> regards, tom lane
Attachments:
smime.p7s (application/pkcs7-signature, 1.4K) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: BUG #15149: Invalid cache id = 42
2018-04-10 15:55 BUG #15149: Invalid cache id = 42 PG Bug reporting form <noreply@postgresql.org>
2018-04-10 16:11 ` Re: BUG #15149: Invalid cache id = 42 Tom Lane <tgl@sss.pgh.pa.us>
2018-04-11 14:01 ` Re: BUG #15149: Invalid cache id = 42 Chirkin Dmitry <dmitry.chirkin@gmail.com>
@ 2018-04-11 14:18 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2018-04-11 14:18 UTC (permalink / raw)
To: Chirkin Dmitry <dmitry.chirkin@gmail.com>; +Cc: pgsql-bugs@lists.postgresql.org
Chirkin Dmitry <dmitry.chirkin@gmail.com> writes:
> Oh, I’m just a nodejs developer, is there any instructions which I can follow to achieve this?
There's some info on our wiki:
https://wiki.postgresql.org/wiki/Generating_a_stack_trace_of_a_PostgreSQL_backend
regards, tom lane
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2018-04-11 14:18 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-10 15:55 BUG #15149: Invalid cache id = 42 PG Bug reporting form <noreply@postgresql.org>
2018-04-10 16:11 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-04-11 14:01 ` Chirkin Dmitry <dmitry.chirkin@gmail.com>
2018-04-11 14:18 ` Tom Lane <tgl@sss.pgh.pa.us>
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