pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
logical decoding / rewrite map vs. maxAllocatedDescs
27+ messages / 5 participants
[nested] [flat]

* logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-09 17:31  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 2 replies; 27+ messages in thread

From: Tomas Vondra @ 2018-08-09 17:31 UTC (permalink / raw)
  To: pgsql-hackers

Hi,

While investigating an issue with rewrite maps in logical decoding, I 
found it's pretty darn trivial to hit this:

     ERROR:  53000: exceeded maxAllocatedDescs (492) while trying to open
     file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b"

This happens because we seem to open the mapping files and keep them 
open until the next checkpoint, at which point we fsync + close.

I suppose there are reasons why it's done this way, and admittedly the 
test that happens to trigger this is a bit extreme (essentially running 
pgbench concurrently with 'vacuum full pg_class' in a loop). I'm not 
sure it's extreme enough to deem it not an issue, because people using 
many temporary tables often deal with bloat by doing frequent vacuum 
full on catalogs.

Furthermore, the situation is made worse by opening the same file 
repeatedly, under different file descriptor.

I've added elog(LOG) to OpenTransientFile and CloseTransientFile - see 
the attached file.log, which is filtered to a single process. The 'cnt' 
field is showing numAllocatedDescs. There are 500 calls to 
OpenTransientFile, but only 8 calls to CloseTransientFile (all of them 
for pg_filenode.map).

But each of the mapping files is opened 9x, so we run out of file 
descriptors 10x faster. Moreover, I'm pretty sure simply increasing the 
file descriptor limit is not a solution - we'll simply end up opening 
the files over and over until hitting it again.

But wait, there's more - what happens after hitting the limit? We 
restart the decoding process, and end up getting this:

     ERROR:  53000: exceeded maxAllocatedDescs (492) while trying to open
     file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b"
     LOCATION:  OpenTransientFile, fd.c:2161
     LOG:  00000: starting logical decoding for slot "s"
     DETAIL:  streaming transactions committing after 1/6097DD48, reading
     WAL from 1/60275848
     LOCATION:  CreateDecodingContext, logical.c:414
     LOG:  00000: logical decoding found consistent point at 1/60275848
     DETAIL:  Logical decoding will begin using saved snapshot.
     LOCATION:  SnapBuildRestore, snapbuild.c:1872
     ERROR:  XX000: subtransaction logged without previous top-level txn
     record
     LOCATION:  ReorderBufferAssignChild, reorderbuffer.c:790
     LOG:  00000: starting logical decoding for slot "s"
     DETAIL:  streaming transactions committing after 1/60988088, reading
     WAL from 1/60275848
     LOCATION:  CreateDecodingContext, logical.c:414
     LOG:  00000: logical decoding found consistent point at 1/60275848
     DETAIL:  Logical decoding will begin using saved snapshot.
     LOCATION:  SnapBuildRestore, snapbuild.c:1872
     ERROR:  XX000: subtransaction logged without previous top-level txn
     record
     LOCATION:  ReorderBufferAssignChild, reorderbuffer.c:790

I'd say this implies the "can't open file" is handled in a way that 
corrupts the mapping files, making it impossible to restart the 
decoding. AFAICS the only option at this point is to drop the 
subscription and start over.

I think the right solution here is (a) making sure we don't needlessly 
open the same mapping file over and over, (b) closing the files sooner, 
instead of waiting for the next checkpoint. I guess a small local cache 
of file descriptors would do both things.

Not sure about the error handling. Even if we get rid of the file 
descriptor limit issue, I guess there are other ways why this we can 
fail here, so we probably need to improve that too.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

  [text/x-log] file.log (71.5K, ../../738a590a-2ce5-9394-2bef-7b1caad89b37@2ndquadrant.com/2-file.log)
  download

^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-09 17:42  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  1 sibling, 1 reply; 27+ messages in thread

From: Tom Lane @ 2018-08-09 17:42 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: pgsql-hackers

Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> While investigating an issue with rewrite maps in logical decoding, I 
> found it's pretty darn trivial to hit this:
>      ERROR:  53000: exceeded maxAllocatedDescs (492) while trying to open
>      file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b"

> This happens because we seem to open the mapping files and keep them 
> open until the next checkpoint, at which point we fsync + close.

It sounds like whoever wrote that code was completely impervious to the
API spec for AllocateFile():

 * Note that files that will be open for any significant length of time
 * should NOT be handled this way, since they cannot share kernel file
 * descriptors with other files; there is grave risk of running out of FDs
 * if anyone locks down too many FDs.

Perhaps these files should be accessed through fd.c's VFD infrastructure
rather than ignoring it.  Reinventing it is especially not the way to go.

> Furthermore, the situation is made worse by opening the same file 
> repeatedly, under different file descriptor.

That's just stupid :-(

Note that the limit on maxAllocatedDescs is based on the kernel limit
on how many files a process can have open, so assuming you can increase
it is not going to end well.

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-09 17:47  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  1 sibling, 2 replies; 27+ messages in thread

From: Alvaro Herrera @ 2018-08-09 17:47 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: pgsql-hackers

On 2018-Aug-09, Tomas Vondra wrote:

> I suppose there are reasons why it's done this way, and admittedly the test
> that happens to trigger this is a bit extreme (essentially running pgbench
> concurrently with 'vacuum full pg_class' in a loop). I'm not sure it's
> extreme enough to deem it not an issue, because people using many temporary
> tables often deal with bloat by doing frequent vacuum full on catalogs.

Actually, it seems to me that ApplyLogicalMappingFile is just leaking
the file descriptor for no good reason.  There's a different
OpenTransientFile call in ReorderBufferRestoreChanges that is not
intended to be closed immediately, but the other one seems a plain bug,
easy enough to fix.

> But wait, there's more - what happens after hitting the limit? We restart
> the decoding process, and end up getting this:
> 
>     ERROR:  53000: exceeded maxAllocatedDescs (492) while trying to open
>     file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b"
>     LOCATION:  OpenTransientFile, fd.c:2161
>     LOG:  00000: starting logical decoding for slot "s"
>     DETAIL:  streaming transactions committing after 1/6097DD48, reading
>     WAL from 1/60275848
>     LOCATION:  CreateDecodingContext, logical.c:414
>     LOG:  00000: logical decoding found consistent point at 1/60275848
>     DETAIL:  Logical decoding will begin using saved snapshot.
>     LOCATION:  SnapBuildRestore, snapbuild.c:1872
>     ERROR:  XX000: subtransaction logged without previous top-level txn
>     record

Hmm, I wonder if we introduced some bug in f49a80c481f7.

> I'd say this implies the "can't open file" is handled in a way that corrupts
> the mapping files, making it impossible to restart the decoding. AFAICS the
> only option at this point is to drop the subscription and start over.

Wow, that seems pretty serious.  Clearly that's a different bug that
must be fixed.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-09 17:58  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 27+ messages in thread

From: Alvaro Herrera @ 2018-08-09 17:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; pgsql-hackers

On 2018-Aug-09, Tom Lane wrote:

> It sounds like whoever wrote that code was completely impervious to the
> API spec for AllocateFile():
> 
>  * Note that files that will be open for any significant length of time
>  * should NOT be handled this way, since they cannot share kernel file
>  * descriptors with other files; there is grave risk of running out of FDs
>  * if anyone locks down too many FDs.
> 
> Perhaps these files should be accessed through fd.c's VFD infrastructure
> rather than ignoring it.  Reinventing it is especially not the way to go.

Ah, right.  Maybe ReorderBufferRestoreChanges should use
PathNameOpenFile / FileRead ...

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-09 17:58  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  1 sibling, 0 replies; 27+ messages in thread

From: Tomas Vondra @ 2018-08-09 17:58 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-hackers



On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
> On 2018-Aug-09, Tomas Vondra wrote:
> 
>> I suppose there are reasons why it's done this way, and admittedly the test
>> that happens to trigger this is a bit extreme (essentially running pgbench
>> concurrently with 'vacuum full pg_class' in a loop). I'm not sure it's
>> extreme enough to deem it not an issue, because people using many temporary
>> tables often deal with bloat by doing frequent vacuum full on catalogs.
> 
> Actually, it seems to me that ApplyLogicalMappingFile is just leaking
> the file descriptor for no good reason.  There's a different
> OpenTransientFile call in ReorderBufferRestoreChanges that is not
> intended to be closed immediately, but the other one seems a plain bug,
> easy enough to fix.
> 
>> But wait, there's more - what happens after hitting the limit? We restart
>> the decoding process, and end up getting this:
>>
>>      ERROR:  53000: exceeded maxAllocatedDescs (492) while trying to open
>>      file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b"
>>      LOCATION:  OpenTransientFile, fd.c:2161
>>      LOG:  00000: starting logical decoding for slot "s"
>>      DETAIL:  streaming transactions committing after 1/6097DD48, reading
>>      WAL from 1/60275848
>>      LOCATION:  CreateDecodingContext, logical.c:414
>>      LOG:  00000: logical decoding found consistent point at 1/60275848
>>      DETAIL:  Logical decoding will begin using saved snapshot.
>>      LOCATION:  SnapBuildRestore, snapbuild.c:1872
>>      ERROR:  XX000: subtransaction logged without previous top-level txn
>>      record
> 
> Hmm, I wonder if we introduced some bug in f49a80c481f7.
> 

That's possible. I'm running on f85537a88d, i.e. with f49a80c481f7.

>> I'd say this implies the "can't open file" is handled in a way that corrupts
>> the mapping files, making it impossible to restart the decoding. AFAICS the
>> only option at this point is to drop the subscription and start over.
> 
> Wow, that seems pretty serious.  Clearly that's a different bug that
> must be fixed.
> 

Yep.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-10 20:57  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  1 sibling, 1 reply; 27+ messages in thread

From: Tomas Vondra @ 2018-08-10 20:57 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-hackers



On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
> On 2018-Aug-09, Tomas Vondra wrote:
> 
>> I suppose there are reasons why it's done this way, and admittedly the test
>> that happens to trigger this is a bit extreme (essentially running pgbench
>> concurrently with 'vacuum full pg_class' in a loop). I'm not sure it's
>> extreme enough to deem it not an issue, because people using many temporary
>> tables often deal with bloat by doing frequent vacuum full on catalogs.
> 
> Actually, it seems to me that ApplyLogicalMappingFile is just leaking
> the file descriptor for no good reason.  There's a different
> OpenTransientFile call in ReorderBufferRestoreChanges that is not
> intended to be closed immediately, but the other one seems a plain bug,
> easy enough to fix.
> 

Indeed. Adding a CloseTransientFile to ApplyLogicalMappingFile solves
the issue with hitting maxAllocatedDecs. Barring objections I'll commit
this shortly.

>> But wait, there's more - what happens after hitting the limit? We restart
>> the decoding process, and end up getting this:
>>
>>     ERROR:  53000: exceeded maxAllocatedDescs (492) while trying to open
>>     file "pg_logical/mappings/map-4000-4eb-1_60DE1E08-5376b5-537c6b"
>>     LOCATION:  OpenTransientFile, fd.c:2161
>>     LOG:  00000: starting logical decoding for slot "s"
>>     DETAIL:  streaming transactions committing after 1/6097DD48, reading
>>     WAL from 1/60275848
>>     LOCATION:  CreateDecodingContext, logical.c:414
>>     LOG:  00000: logical decoding found consistent point at 1/60275848
>>     DETAIL:  Logical decoding will begin using saved snapshot.
>>     LOCATION:  SnapBuildRestore, snapbuild.c:1872
>>     ERROR:  XX000: subtransaction logged without previous top-level txn
>>     record
> 
> Hmm, I wonder if we introduced some bug in f49a80c481f7.
> 

Not sure. I've tried reproducing it both on b767b3f2e5b7 (that's f49...
in REL_10_STABLE branch) and 09879f7536350 (that's the commit
immediately before it), and I can't reproduce it for some reason. I'll
try on Monday on the same laptop I used before (it's in the office, so I
can't try now).

But while running the tests on this machine, I repeatedly got pgbench
failures like this:

client 2 aborted in command 0 of script 0; ERROR:  could not read block
3 in file "base/16384/24573": read only 0 of 8192 bytes

That kinda reminds me the issues we're observing on some buildfarm
machines, I wonder if it's the same thing.

I suppose relfilenode 24573 is pg_class, which is the only table I'm
running vacuum full on here.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-10 21:13  Andres Freund <andres@anarazel.de>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 2 replies; 27+ messages in thread

From: Andres Freund @ 2018-08-10 21:13 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

On 2018-08-10 22:57:57 +0200, Tomas Vondra wrote:
> 
> 
> On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
> > On 2018-Aug-09, Tomas Vondra wrote:
> > 
> >> I suppose there are reasons why it's done this way, and admittedly the test
> >> that happens to trigger this is a bit extreme (essentially running pgbench
> >> concurrently with 'vacuum full pg_class' in a loop). I'm not sure it's
> >> extreme enough to deem it not an issue, because people using many temporary
> >> tables often deal with bloat by doing frequent vacuum full on catalogs.
> > 
> > Actually, it seems to me that ApplyLogicalMappingFile is just leaking
> > the file descriptor for no good reason.  There's a different
> > OpenTransientFile call in ReorderBufferRestoreChanges that is not
> > intended to be closed immediately, but the other one seems a plain bug,
> > easy enough to fix.
> > 
> 
> Indeed. Adding a CloseTransientFile to ApplyLogicalMappingFile solves
> the issue with hitting maxAllocatedDecs. Barring objections I'll commit
> this shortly.

Yea, that's clearly a bug. I've not seen a patch, so I can't quite
formally sign off, but it seems fairly obvious.


> But while running the tests on this machine, I repeatedly got pgbench
> failures like this:
> 
> client 2 aborted in command 0 of script 0; ERROR:  could not read block
> 3 in file "base/16384/24573": read only 0 of 8192 bytes
> 
> That kinda reminds me the issues we're observing on some buildfarm
> machines, I wonder if it's the same thing.

Oooh, that's interesting! What's the precise recipe that gets you there?

Greetings,

Andres Freund




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-10 21:59  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Andres Freund <andres@anarazel.de>
  1 sibling, 1 reply; 27+ messages in thread

From: Tomas Vondra @ 2018-08-10 21:59 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers



On 08/10/2018 11:13 PM, Andres Freund wrote:
> On 2018-08-10 22:57:57 +0200, Tomas Vondra wrote:
>>
>>
>> On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
>>> On 2018-Aug-09, Tomas Vondra wrote:
>>>
>>>> I suppose there are reasons why it's done this way, and admittedly the test
>>>> that happens to trigger this is a bit extreme (essentially running pgbench
>>>> concurrently with 'vacuum full pg_class' in a loop). I'm not sure it's
>>>> extreme enough to deem it not an issue, because people using many temporary
>>>> tables often deal with bloat by doing frequent vacuum full on catalogs.
>>>
>>> Actually, it seems to me that ApplyLogicalMappingFile is just leaking
>>> the file descriptor for no good reason.  There's a different
>>> OpenTransientFile call in ReorderBufferRestoreChanges that is not
>>> intended to be closed immediately, but the other one seems a plain bug,
>>> easy enough to fix.
>>>
>>
>> Indeed. Adding a CloseTransientFile to ApplyLogicalMappingFile solves
>> the issue with hitting maxAllocatedDecs. Barring objections I'll commit
>> this shortly.
> 
> Yea, that's clearly a bug. I've not seen a patch, so I can't quite
> formally sign off, but it seems fairly obvious.
> 
> 
>> But while running the tests on this machine, I repeatedly got pgbench
>> failures like this:
>>
>> client 2 aborted in command 0 of script 0; ERROR:  could not read block
>> 3 in file "base/16384/24573": read only 0 of 8192 bytes
>>
>> That kinda reminds me the issues we're observing on some buildfarm
>> machines, I wonder if it's the same thing.
> 
> Oooh, that's interesting! What's the precise recipe that gets you there?
> 

I don't have an exact reproducer - it's kinda rare and unpredictable,
and I'm not sure how much it depends on the environment etc. But I'm
doing this:

1) one cluster with publication (wal_level=logical)

2) one cluster with subscription to (1)

3) simple table, replicated from (1) to (2)

   -- publisher
   create table t (a serial primary key, b int, c int);
   create publication p for table t;

   -- subscriber
   create table t (a serial primary key, b int, c int);
   create subscription s CONNECTION '...' publication p;

4) pgbench inserting rows into the replicated table

   pgbench -n -c 4 -T 300 -p 5433 -f insert.sql test

5) pgbench doing vacuum full on pg_class

   pgbench -n -f vacuum.sql -T 300 -p 5433 test

And once in a while I see failures like this:

   client 0 aborted in command 0 of script 0; ERROR:  could not read
   block 3 in file "base/16384/86242": read only 0 of 8192 bytes

   client 3 aborted in command 0 of script 0; ERROR:  could not read
   block 3 in file "base/16384/86242": read only 0 of 8192 bytes

   client 2 aborted in command 0 of script 0; ERROR:  could not read
   block 3 in file "base/16384/86242": read only 0 of 8192 bytes

or this:

   client 2 aborted in command 0 of script 0; ERROR:  could not read
   block 3 in file "base/16384/89369": read only 0 of 8192 bytes

   client 1 aborted in command 0 of script 0; ERROR:  could not read
   block 3 in file "base/16384/89369": read only 0 of 8192 bytes

I suspect there's some other ingredient, e.g. some manipulation with the
subscription. Or maybe it's not needed at all and I'm just imagining things.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

  [application/sql] vacuum.sql (21B, ../../470adb65-5101-4659-d213-41bde1eef8f2@2ndquadrant.com/2-vacuum.sql)
  download

  [application/sql] insert.sql (34B, ../../470adb65-5101-4659-d213-41bde1eef8f2@2ndquadrant.com/3-insert.sql)
  download

^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-10 23:55  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 2 replies; 27+ messages in thread

From: Tomas Vondra @ 2018-08-10 23:55 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

On 08/10/2018 11:59 PM, Tomas Vondra wrote:
> 
> ...
> 
> I suspect there's some other ingredient, e.g. some manipulation with the
> subscription. Or maybe it's not needed at all and I'm just imagining things.
> 

Indeed, the manipulation with the subscription seems to be the key here.
I pretty reliably get the 'could not read block' error when doing this:

1) start the insert pgbench

   pgbench -n -c 4 -T 300 -p 5433 -f insert.sql test

2) start the vacuum full pgbench

   pgbench -n -f vacuum.sql -T 300 -p 5433 test

3) try to create a subscription, but with small amount of conflicting
data so that the sync fails like this:

  LOG:  logical replication table synchronization worker for
  subscription "s", table "t" has started
  ERROR:  duplicate key value violates unique constraint "t_pkey"
  DETAIL:  Key (a)=(5997542) already exists.
  CONTEXT:  COPY t, line 1
  LOG:  worker process: logical replication worker for subscription
  16458 sync 16397 (PID 31983) exited with exit code 1

4) At this point the insert pgbench (at least some clients) should have
failed with the error. If not, rinse and repeat.

This kinda explains why I've been seeing the error only occasionally,
because it only happened when I forgotten to clean the table on the
subscriber while recreating the subscription.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 07:06  Andres Freund <andres@anarazel.de>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  1 sibling, 1 reply; 27+ messages in thread

From: Andres Freund @ 2018-08-11 07:06 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

Hi,

On 2018-08-11 01:55:43 +0200, Tomas Vondra wrote:
> On 08/10/2018 11:59 PM, Tomas Vondra wrote:
> > 
> > ...
> > 
> > I suspect there's some other ingredient, e.g. some manipulation with the
> > subscription. Or maybe it's not needed at all and I'm just imagining things.
> > 
> 
> Indeed, the manipulation with the subscription seems to be the key here.
> I pretty reliably get the 'could not read block' error when doing this:
> 
> 1) start the insert pgbench
> 
>    pgbench -n -c 4 -T 300 -p 5433 -f insert.sql test
> 
> 2) start the vacuum full pgbench
> 
>    pgbench -n -f vacuum.sql -T 300 -p 5433 test
> 
> 3) try to create a subscription, but with small amount of conflicting
> data so that the sync fails like this:
> 
>   LOG:  logical replication table synchronization worker for
>   subscription "s", table "t" has started
>   ERROR:  duplicate key value violates unique constraint "t_pkey"
>   DETAIL:  Key (a)=(5997542) already exists.
>   CONTEXT:  COPY t, line 1
>   LOG:  worker process: logical replication worker for subscription
>   16458 sync 16397 (PID 31983) exited with exit code 1
> 
> 4) At this point the insert pgbench (at least some clients) should have
> failed with the error. If not, rinse and repeat.
> 
> This kinda explains why I've been seeing the error only occasionally,
> because it only happened when I forgotten to clean the table on the
> subscriber while recreating the subscription.

I'll try to reproduce this.  If you're also looking, I suspect a good
first hint would be to just change the ERROR into a PANIC and look at
the backtrace from the generated core file.

To the point that I wonder if we shouldn't just change the ERROR into a
PANIC on master (but not REL_11_STABLE), so the buildfarm gives us
feedback.  I don't think the problem can fundamentally be related to
subscriptions, given the error occurs before any subscriptions are
created in the schedule.

Greetings,

Andres Freund




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 07:15  Peter Geoghegan <pg@bowt.ie>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 27+ messages in thread

From: Peter Geoghegan @ 2018-08-11 07:15 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

On Sat, Aug 11, 2018 at 12:06 AM, Andres Freund <andres@anarazel.de> wrote:
> To the point that I wonder if we shouldn't just change the ERROR into a
> PANIC on master (but not REL_11_STABLE), so the buildfarm gives us
> feedback.  I don't think the problem can fundamentally be related to
> subscriptions, given the error occurs before any subscriptions are
> created in the schedule.

+1. I like that idea.


-- 
Peter Geoghegan




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 07:34  Andres Freund <andres@anarazel.de>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  1 sibling, 2 replies; 27+ messages in thread

From: Andres Freund @ 2018-08-11 07:34 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

Hi,

On 2018-08-11 01:55:43 +0200, Tomas Vondra wrote:
> On 08/10/2018 11:59 PM, Tomas Vondra wrote:
> > 
> > ...
> > 
> > I suspect there's some other ingredient, e.g. some manipulation with the
> > subscription. Or maybe it's not needed at all and I'm just imagining things.
> > 
> 
> Indeed, the manipulation with the subscription seems to be the key here.
> I pretty reliably get the 'could not read block' error when doing this:
> 
> 1) start the insert pgbench
> 
>    pgbench -n -c 4 -T 300 -p 5433 -f insert.sql test
> 
> 2) start the vacuum full pgbench
> 
>    pgbench -n -f vacuum.sql -T 300 -p 5433 test

Just to be clear: 5433 is the subscriber, right? I tried it with both,
but it's not clear what you meant with either the previous or the this
email.


> 3) try to create a subscription, but with small amount of conflicting
> data so that the sync fails like this:
> 
>   LOG:  logical replication table synchronization worker for
>   subscription "s", table "t" has started
>   ERROR:  duplicate key value violates unique constraint "t_pkey"
>   DETAIL:  Key (a)=(5997542) already exists.
>   CONTEXT:  COPY t, line 1
>   LOG:  worker process: logical replication worker for subscription
>   16458 sync 16397 (PID 31983) exited with exit code 1
> 
> 4) At this point the insert pgbench (at least some clients) should have
> failed with the error. If not, rinse and repeat.

I've run this numerous times now, and I haven't triggered it yet :/

Greetings,

Andres Freund




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 07:46  Andres Freund <andres@anarazel.de>
  parent: Andres Freund <andres@anarazel.de>
  1 sibling, 2 replies; 27+ messages in thread

From: Andres Freund @ 2018-08-11 07:46 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

On 2018-08-11 00:34:15 -0700, Andres Freund wrote:
> I've run this numerous times now, and I haven't triggered it yet :/

Heh, I hit it literally seconds after hitting send:

2018-08-11 00:35:52.804 PDT [2196][9/14864] LOG:  automatic analyze of table "postgres.pg_catalog.pg_depend" system usage: CPU: user: 0.02 s, system: 0.00 s, elapsed: 0.15 s
2018-08-11 00:36:00.391 PDT [2196][9/14866] LOG:  automatic analyze of table "postgres.public.t" system usage: CPU: user: 0.25 s, system: 0.02 s, elapsed: 7.56 s
2018-08-11 00:36:00.399 PDT [2171][4/200412] PANIC:  could not read block 3 in file "base/12397/167946": read only 0 of 8192 bytes
2018-08-11 00:36:00.399 PDT [2171][4/200412] STATEMENT:  insert into t (b,c) values (1,1);
2018-08-11 00:36:00.410 PDT [2196][9/14868] LOG:  skipping vacuum of "pg_class" --- lock not available
2018-08-11 00:36:00.448 PDT [389][] LOG:  server process (PID 2171) was terminated by signal 6: Aborted
2018-08-11 00:36:00.448 PDT [389][] DETAIL:  Failed process was running: insert into t (b,c) values (1,1);
2018-08-11 00:36:00.448 PDT [389][] LOG:  terminating any other active server processes

Below you can find the bt full showing a bunch of nested invalidations. Looking.

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
        set = {__val = {0, 14583431671641719254, 0, 0, 0, 0, 0, 0, 0, 0, 1296236544, 94518929497176, 1024, 0, 0, 0}}
        pid = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
#1  0x00007f0de57f52f1 in __GI_abort () at abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {0, 0, 0, 17399330032, 94518929499360, 94518929499336, 94518929496896, 140720527947024, 94518900188034, 69, 94518929499360, 4870, 94518929496896, 94518929499360, 139697663207040, 139697663189664}}, sa_flags = -444414227, sa_restorer = 0x0}
        sigs = {__val = {32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
#2  0x000055f6e5748e0b in errfinish (dummy=0) at /home/andres/src/postgresql/src/backend/utils/error/elog.c:557
        edata = 0x55f6e5af6dc0 <errordata>
        elevel = 22
        oldcontext = 0x55f6e743c570
        econtext = 0x0
        __func__ = "errfinish"
#3  0x000055f6e55d2c0c in mdread (reln=0x55f6e7415de0, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x7f0de4eb5700 "\001") at /home/andres/src/postgresql/src/backend/storage/smgr/md.c:786
        seekpos = 24576
        nbytes = 0
        v = 0x55f6e73a1448
        __func__ = "mdread"
#4  0x000055f6e55d5554 in smgrread (reln=0x55f6e7415de0, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x7f0de4eb5700 "\001") at /home/andres/src/postgresql/src/backend/storage/smgr/smgr.c:628
No locals.
#5  0x000055f6e5593bea in ReadBuffer_common (smgr=0x55f6e7415de0, relpersistence=112 'p', forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0, hit=0x7ffc0d14b7fb) at /home/andres/src/postgresql/src/backend/storage/buffer/bufmgr.c:890
        io_start = {tv_sec = 140720527947552, tv_nsec = 94518898352892}
        io_time = {tv_sec = 72057594257389344, tv_nsec = 72197288386101248}
        bufHdr = 0x7f0de3eb76c0
        bufBlock = 0x7f0de4eb5700
        found = false
        isExtend = false
        isLocalBuf = false
        __func__ = "ReadBuffer_common"
#6  0x000055f6e55934fb in ReadBufferExtended (reln=0x7f0de627a850, forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0) at /home/andres/src/postgresql/src/backend/storage/buffer/bufmgr.c:664
        hit = false
        buf = 1980
        __func__ = "ReadBufferExtended"
#7  0x000055f6e55933cf in ReadBuffer (reln=0x7f0de627a850, blockNum=3) at /home/andres/src/postgresql/src/backend/storage/buffer/bufmgr.c:596
No locals.
#8  0x000055f6e520a530 in _bt_getbuf (rel=0x7f0de627a850, blkno=3, access=1) at /home/andres/src/postgresql/src/backend/access/nbtree/nbtpage.c:736
        buf = 22006
        __func__ = "_bt_getbuf"
#9  0x000055f6e52091cf in _bt_getroot (rel=0x7f0de627a850, access=1) at /home/andres/src/postgresql/src/backend/access/nbtree/nbtpage.c:282
        metabuf = 0
        metapg = 0x55f6e5216574 <_bt_preprocess_keys+326> "\351\371\004"
        metaopaque = 0x7ffc0d14b9b0
        rootbuf = 22006
        rootpage = 0x7ffc0d14b954 ""
        rootopaque = 0x55f6e743c6b0
        rootblkno = 3
        rootlevel = 1
        metad = 0x55f6e741da88
        __func__ = "_bt_getroot"
#10 0x000055f6e5210ea0 in _bt_search (rel=0x7f0de627a850, keysz=1, scankey=0x7ffc0d14c2e0, nextkey=false, bufP=0x7ffc0d14cce4, access=1, snapshot=0x55f6e5aade80 <CatalogSnapshotData>) at /home/andres/src/postgresql/src/backend/access/nbtree/nbtsearch.c:104
        stack_in = 0x0
        page_access = 1
#11 0x000055f6e521263d in _bt_first (scan=0x55f6e743c6b0, dir=ForwardScanDirection) at /home/andres/src/postgresql/src/backend/access/nbtree/nbtsearch.c:1060
        rel = 0x7f0de627a850
        so = 0x55f6e74405d0
        buf = 0
        stack = 0x7ffc0d14cd20
        offnum = 0
        strat = 3
        nextkey = false
        goback = false
        startKeys = {0x55f6e743c8b8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7ffc0d14cd00, 0x4e55b8917, 0x55f6e743c808, 0x80, 0x0, 0x0, 0x0, 0x400001d68, 0x55f6e743c8a0, 0x80, 0x55f6e743c570, 0x55f6e5785cb2 <palloc+262>, 0x0, 0x1cd0, 0x20d8, 0x55f6e743c648, 0x7ffc0d14cd20, 0x55f6e5785cb2 <palloc+262>, 0x0, 0x48, 0x1305, 0x55f6e743c570, 0x55f6e743c8b8, 0x48}
        scankeys = {{sk_flags = 196608, sk_attno = 1, sk_strategy = 0, sk_subtype = 0, sk_collation = 100, sk_func = {fn_addr = 0x55f6e52029ed <btoidcmp>, fn_oid = 356, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, fn_mcxt = 0x55f6e743c570, fn_expr = 0x0}, sk_argument = 1259}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 1296236544, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 88 'X', fn_extra = 0x1, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 3879362648, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x55f6e5779cb6 <AllocSetAlloc+2370>, fn_mcxt = 0x18, fn_expr = 0x55f6e737d320}, sk_argument = 16777240}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 1296236544, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 64 '@', fn_extra = 0x8, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 1296236544, sk_attno = 0, sk_strategy = 0, sk_subtype = 3879979280, sk_collation = 22006, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 1, fn_strict = false, fn_retset = 32, fn_stats = 148 '\224', fn_extra = 0x7f0de4c9f700, fn_mcxt = 0x7ffc0d14c480, fn_expr = 0x55f6e5218baa <_bt_check_natts+72>}, sk_argument = 140720527950960}, {sk_flags = -446938903, sk_attno = 1, sk_strategy = 0, sk_subtype = 24, sk_collation = 0, sk_func = {fn_addr = 0x55f6e577882e <wipe_mem+126>, fn_oid = 32, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 40 '(', fn_extra = 0x4d430001, fn_mcxt = 0x55f6e743c928, fn_expr = 0x20}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x4d430000, fn_oid = 3879979304, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 1296236545}, {sk_flags = -415604696, sk_attno = 22006, sk_strategy = 0, sk_subtype = 24, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x4d430000, fn_mcxt = 0x55f6e73a6058, fn_expr = 0x8}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x4d430000, fn_oid = 3879362600, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 16 '\020', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x55f6e599bce0}, sk_argument = 140720527952640}, {sk_flags = 219466880, sk_attno = 32764, sk_strategy = 0, sk_subtype = 11, sk_collation = 0, sk_func = {fn_addr = 0x7ffc0d14cb10, fn_oid = 15, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 20 '\024', fn_extra = 0x8314000100000001, fn_mcxt = 0x8314000000212ded, fn_expr = 0x55f6e5ad2cb0 <PrivateRefCountArray+16>}, sk_argument = 3847846476}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 3847845018, sk_collation = 2, sk_func = {fn_addr = 0xffffffffffffffff, fn_oid = 2, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x55f600000000, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 140720308486144}, {sk_flags = 219465440, sk_attno = 32764, sk_strategy = 0, sk_subtype = 0, sk_collation = 32764, sk_func = {fn_addr = 0x55f6fffffff1, fn_oid = 0, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0xd68, fn_mcxt = 0x55f60000000f, fn_expr = 0x55f6e599bce0}, sk_argument = 4}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 3852057829, sk_collation = 22006, sk_func = {fn_addr = 0x10d14c670, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 64 '@', fn_extra = 0x55f6e737d320, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 140720527951536}, {sk_flags = -448403823, sk_attno = 22006, sk_strategy = 0, sk_subtype = 219465476, sk_collation = 32764, sk_func = {fn_addr = 0xdee3eb76d8, fn_oid = 3879362624, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 64 '@', fn_extra = 0x7ffc0d14c6d0, fn_mcxt = 0x3000000018, fn_expr = 0x7ffc0d14cd60}, sk_argument = 140720527953056}, {sk_flags = 219466288, sk_attno = 32764, sk_strategy = 0, sk_subtype = 3846551929, sk_collation = 22006, sk_func = {fn_addr = 0x10d14c720, fn_oid = 219472848, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 233 '\351', fn_extra = 0x55f6e737ee88, fn_mcxt = 0x830c00000d14c720, fn_expr = 0x7f0de3d85b80}, sk_argument = 1}, {sk_flags = 15625616, sk_attno = 0, sk_strategy = 8192, sk_subtype = 219465712, sk_collation = 32764, sk_func = {fn_addr = 0x55f6e55940dd <BufferAlloc+238>, fn_oid = 3, fn_nargs = 32525, fn_strict = false, fn_retset = false, fn_stats = 67 'C', fn_extra = 0x0, fn_mcxt = 0xde73ad0e8, fn_expr = 0x7f7000000000}, sk_argument = 94518930136320}, {sk_flags = 48, sk_attno = 0, sk_strategy = 0, sk_subtype = 3879362680, sk_collation = 22006, sk_func = {fn_addr = 0x4d430001, fn_oid = 3879362728, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 1 '\001', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 1296236544}, {sk_flags = -415604568, sk_attno = 22006, sk_strategy = 0, sk_subtype = 1, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 94518929678504}, {sk_flags = 219466336, sk_attno = 32764, sk_strategy = 0, sk_subtype = 3849821366, sk_collation = 22006, sk_func = {fn_addr = 0x30, fn_oid = 3879195424, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 240 '\360', fn_extra = 0x55f6e5752d7a <FunctionCall2Coll+160>, fn_mcxt = 0x4002, fn_expr = 0x4006}, sk_argument = 219465824}, {sk_flags = -415765464, sk_attno = 22006, sk_strategy = 0, sk_subtype = 3879201832, sk_collation = 22006, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x4006, fn_mcxt = 0x4002, fn_expr = 0x7ffc0d14d620}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 163584, sk_func = {fn_addr = 0x4000, fn_oid = 16386, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 192 '\300', fn_extra = 0x7f0de4ed1700, fn_mcxt = 0x10d14c8d0, fn_expr = 0xc36e3d82984}, sk_argument = 140720527952208}, {sk_flags = -445281983, sk_attno = 22006, sk_strategy = 0, sk_subtype = 0, sk_collation = 1574, sk_func = {fn_addr = 0x69c55c3600000000, fn_oid = 219466224, fn_nargs = -5170, fn_strict = 64, fn_retset = 131, fn_stats = 0 '\000', fn_extra = 0x55f6e5723c42 <int4hashfast+23>, fn_mcxt = 0x626, fn_expr = 0x7ffc0d14c960}, sk_argument = 94518899785832}, {sk_flags = 1574, sk_attno = 0, sk_strategy = 0, sk_subtype = 3879362624, sk_collation = 22006, sk_func = {fn_addr = 0x0, fn_oid = 20, fn_nargs = 1574, fn_strict = false, fn_retset = false, fn_stats = 1 '\001', fn_extra = 0x55f6e73a6060, fn_mcxt = 0x18, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 8408, sk_attno = 0, sk_strategy = 0, sk_subtype = 1296236544, sk_collation = 107, sk_func = {fn_addr = 0x7, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 112 'p', fn_extra = 0x2100, fn_mcxt = 0x55f6e743c868, fn_expr = 0xffffffffffffffb0}, sk_argument = 131}, {sk_flags = 72, sk_attno = 0, sk_strategy = 0, sk_subtype = 3879979192, sk_collation = 22006, sk_func = {fn_addr = 0x4d430001, fn_oid = 3879979264, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 1 '\001', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 1296236544}, {sk_flags = -414988032, sk_attno = 22006, sk_strategy = 0, sk_subtype = 1, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x48, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 94518930295040}, {sk_flags = 219466912, sk_attno = 32764, sk_strategy = 0, sk_subtype = 3849821366, sk_collation = 22006, sk_func = {fn_addr = 0x48, fn_oid = 3879978352, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x55f6e7442668, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 1296236544, sk_collation = 0, sk_func = {fn_addr = 0x55f6e74405b8, fn_oid = 16, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x4d430000}, sk_argument = 94518930294424}, {sk_flags = 16, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x55f6e743c7f0, fn_mcxt = 0x7ffc0d14cd60, fn_expr = 0x55f6e5779cb6 <AllocSetAlloc+2370>}, sk_argument = 40}, {sk_flags = -414988944, sk_attno = 22006, sk_strategy = 0, sk_subtype = 4222451713, sk_collation = 0, sk_func = {fn_addr = 0x7ffc0d14cd70, fn_oid = 219467120, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 112 'p', fn_extra = 0x7ffc0d14cd70, fn_mcxt = 0x7ffc0d14cd8a, fn_expr = 0x4d430001}, sk_argument = 94518930294792}, {sk_flags = 24, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 1 '\001', fn_extra = 0x55f6e743c8a0, fn_mcxt = 0x18, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 1296236544, sk_collation = 0, sk_func = {fn_addr = 0x55f6e743c900, fn_oid = 56, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x4d430000}, sk_argument = 94518930294944}}
        notnullkeys = {{sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 32525, sk_func = {fn_addr = 0x0, fn_oid = 219462368, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x7ffc0d14bec8, fn_mcxt = 0x7ffc00000006, fn_expr = 0x0}, sk_argument = 3432}, {sk_flags = 6, sk_attno = 0, sk_strategy = 0, sk_subtype = 3852235000, sk_collation = 22006, sk_func = {fn_addr = 0x0, fn_oid = 3879363928, fn_nargs = 21761, fn_strict = false, fn_retset = false, fn_stats = 253 '\375', fn_extra = 0x830c000100000001, fn_mcxt = 0x830c000000212ded, fn_expr = 0x55f6e5ad2ca0 <PrivateRefCountArray>}, sk_argument = 8512178059852}, {sk_flags = 219462288, sk_attno = 32764, sk_strategy = 0, sk_subtype = 3847845018, sk_collation = 22006, sk_func = {fn_addr = 0x0, fn_oid = 3823855104, fn_nargs = 1981, fn_strict = false, fn_retset = false, fn_stats = 176 '\260', fn_extra = 0x55f6e5210e53 <_bt_drop_lock_and_maybe_pin+128>, fn_mcxt = 0x55f6e743a5f8, fn_expr = 0x55f6e737e3a0}, sk_argument = 140720527953520}, {sk_flags = 8, sk_attno = 48, sk_strategy = 0, sk_subtype = 219464144, sk_collation = 32764, sk_func = {fn_addr = 0x7ffc0d14c110, fn_oid = 1315532320, fn_nargs = 5, fn_strict = false, fn_retset = false, fn_stats = 16 '\020', fn_extra = 0x550495020, fn_mcxt = 0x551830710, fn_expr = 0x552293220}, sk_argument = 22873827600}, {sk_flags = 1409881120, sk_attno = 5, sk_strategy = 0, sk_subtype = 1430440720, sk_collation = 5, sk_func = {fn_addr = 0x555e8f620, fn_oid = 1461890320, fn_nargs = 5, fn_strict = false, fn_retset = false, fn_stats = 56 '8', fn_extra = 0x55f6e737e138, fn_mcxt = 0x559b1f4a0, fn_expr = 0x55aebab90}, sk_argument = 23011120800}, {sk_flags = 1556843920, sk_attno = 5, sk_strategy = 0, sk_subtype = 1567733920, sk_collation = 5, sk_func = {fn_addr = 0x55eab6f90, fn_oid = 1599183520, fn_nargs = 5, fn_strict = false, fn_retset = false, fn_stats = 144 '\220', fn_extra = 0x561317ca0, fn_mcxt = 0x5626b3390, fn_expr = 0x563115ea0}, sk_argument = 23157478800}, {sk_flags = 1694137120, sk_attno = 5, sk_strategy = 0, sk_subtype = 1714696720, sk_collation = 5, sk_func = {fn_addr = 0x566da5d20, fn_oid = 1746146320, fn_nargs = 5, fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x569f3f610, fn_mcxt = 0x56a9a2120, fn_expr = 0x56bd3d810}, sk_argument = 23294772000}, {sk_flags = 1840495120, sk_attno = 5, sk_strategy = 0, sk_subtype = 1851989920, sk_collation = 5, sk_func = {fn_addr = 0x56f9cd690, fn_oid = 1883439520, fn_nargs = 5, fn_strict = false, fn_retset = false, fn_stats = 144 '\220', fn_extra = 0x57222e3a0, fn_mcxt = 0x5735c9a90, fn_expr = 0x57402c5a0}, sk_argument = 23441734800}, {sk_flags = 1977788320, sk_attno = 5, sk_strategy = 0, sk_subtype = 1998347920, sk_collation = 5, sk_func = {fn_addr = 0x577c289a0, fn_oid = 2029797520, fn_nargs = 5, fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x57ae55d10, fn_mcxt = 0x100030000, fn_expr = 0x0}, sk_argument = 94518929514432}, {sk_flags = 356, sk_attno = 2, sk_strategy = 1, sk_subtype = 40, sk_collation = 0, sk_func = {fn_addr = 0x55f6e73a5fc0, fn_oid = 1296236545, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 232 '\350', fn_extra = 0x1, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 1296236544, sk_attno = 0, sk_strategy = 0, sk_subtype = 3879362536, sk_collation = 22006, sk_func = {fn_addr = 0x1, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x0, fn_mcxt = 0x7ffc0d14c0c0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = -415604760, sk_attno = 22006, sk_strategy = 0, sk_subtype = 219463536, sk_collation = 32764, sk_func = {fn_addr = 0x55f6e5779cb6 <AllocSetAlloc+2370>, fn_oid = 40, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x0, fn_mcxt = 0x2000000000064, fn_expr = 0x4eb}, sk_argument = 1259}, {sk_flags = 1259, sk_attno = 0, sk_strategy = 0, sk_subtype = 219463056, sk_collation = 32764, sk_func = {fn_addr = 0x337dafc200000028, fn_oid = 1259, fn_nargs = 1259, fn_strict = false, fn_retset = false, fn_stats = 64 '@', fn_extra = 0x55f6e5752d7a <FunctionCall2Coll+160>, fn_mcxt = 0x4eb, fn_expr = 0x4eb}, sk_argument = 429496729600}, {sk_flags = -414987040, sk_attno = 22006, sk_strategy = 0, sk_subtype = 3879980256, sk_collation = 22006, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 100 'd', fn_extra = 0x4eb, fn_mcxt = 0x80, fn_expr = 0xd14cb70}, sk_argument = 17179869199}, {sk_flags = 219463744, sk_attno = 32764, sk_strategy = 0, sk_subtype = 3849819694, sk_collation = 22006, sk_func = {fn_addr = 0x80, fn_oid = 3879978352, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 48 '0', fn_extra = 0x7f0de4ed1700, fn_mcxt = 0x7ffc0d14be30, fn_expr = 0x1c6e55c6297}, sk_argument = 140720527949472}, {sk_flags = -445281983, sk_attno = 22006, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0xad8dc1c600000000, fn_oid = 219463488, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 248 '\370', fn_extra = 0x4d430001, fn_mcxt = 0x55f6e73a5fa8, fn_expr = 0x18}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x4d430000, fn_oid = 3879362536, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 24 '\030', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 1296236544}, {sk_flags = -415604824, sk_attno = 22006, sk_strategy = 0, sk_subtype = 16, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x7ffc0d14bf10, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 219463904, sk_attno = 32764, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x7ffc0d14c170, fn_oid = 3849819694, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 8 '\b', fn_extra = 0x55f6e73a12b0, fn_mcxt = 0x55f6e743ceb8, fn_expr = 0x3e743ceb8}, sk_argument = 94518929678248}, {sk_flags = 64, sk_attno = 0, sk_strategy = 0, sk_subtype = 3879195424, sk_collation = 22006, sk_func = {fn_addr = 0x55f6e743ceb8, fn_oid = 3879980855, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 104 'h', fn_extra = 0x0, fn_mcxt = 0x55f6e73a5b10, fn_expr = 0x7ffc0d14bff0}, sk_argument = 94518900186290}, {sk_flags = 1296236544, sk_attno = 0, sk_strategy = 0, sk_subtype = 40, sk_collation = 0, sk_func = {fn_addr = 0x1305, fn_oid = 3879195424, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 192 '\300', fn_extra = 0x28, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 128}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 3879362496, sk_collation = 22006, sk_func = {fn_addr = 0x55f6e737d320, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x7ffc0d14c350, fn_mcxt = 0x55f6e545a384 <expression_tree_mutator+222>, fn_expr = 0x55f6e743cea0}, sk_argument = 140720527958992}, {sk_flags = -447769879, sk_attno = 22006, sk_strategy = 0, sk_subtype = 3879202312, sk_collation = 22006, sk_func = {fn_addr = 0x8, fn_oid = 5840, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x55f6e73b07a0, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 1296236544, sk_collation = 0, sk_func = {fn_addr = 0x55f6e73b0708, fn_oid = 16, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x0, fn_mcxt = 0x7ffc0d14c0d0, fn_expr = 0x80}, sk_argument = 720304670261248}, {sk_flags = 219464832, sk_attno = 32764, sk_strategy = 0, sk_subtype = 3849661818, sk_collation = 22006, sk_func = {fn_addr = 0x4000, fn_oid = 167709, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x7ffc0d14cf30, fn_mcxt = 0x7ffc0d14cf30, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 2, sk_subtype = 167709, sk_collation = 0, sk_func = {fn_addr = 0x4000, fn_oid = 167709, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 80 'P', fn_extra = 0x0, fn_mcxt = 0x400200004000, fn_expr = 0x7ffc0d14c500}, sk_argument = 94518899977594}, {sk_flags = 16384, sk_attno = 0, sk_strategy = 0, sk_subtype = 16386, sk_collation = 0, sk_func = {fn_addr = 0xe73a12b0, fn_oid = 3879979168, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 160 '\240', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x2000000000000}, sk_argument = 16386}, {sk_flags = 16384, sk_attno = 0, sk_strategy = 0, sk_subtype = 219467568, sk_collation = 32764, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x305c, fn_mcxt = 0x4000, fn_expr = 0x69c55c360d14c1d0}, sk_argument = 139697652045568}, {sk_flags = 219464160, sk_attno = 1, sk_strategy = 0, sk_subtype = 3822594436, sk_collation = 3126, sk_func = {fn_addr = 0x7ffc0d14c260, fn_oid = 3849685313, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x69c55c3600000000, fn_mcxt = 0x7ffc0d14c300, fn_expr = 0x83140001e73780f8}, sk_argument = 140720527950452}, {sk_flags = -471124968, sk_attno = 32525, sk_strategy = 0, sk_subtype = 1781, sk_collation = 1, sk_func = {fn_addr = 0x7f0de3d83d84, fn_oid = 219464256, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 156 '\234', fn_extra = 0x10d14c250, fn_mcxt = 0x7f0de3d83d84, fn_expr = 0x7ffc0d14c260}, sk_argument = 94518898344476}, {sk_flags = 219464336, sk_attno = 1, sk_strategy = 0, sk_subtype = 3822599556, sk_collation = 32525, sk_func = {fn_addr = 0x7ffc0d14c290, fn_oid = 3848037015, fn_nargs = 22006, fn_strict = false, fn_retset = false, fn_stats = 144 '\220', fn_extra = 0x7f0de3d83d80, fn_mcxt = 0x1, fn_expr = 0x2000000000ee9c10}, sk_argument = 140720527950688}, {sk_flags = -447135523, sk_attno = 22006, sk_strategy = 0, sk_subtype = 3, sk_collation = 0, sk_func = {fn_addr = 0x7ffc0d14c3b3, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 16 '\020', fn_extra = 0x7f7000000000, fn_mcxt = 0x55f6e7415de0, fn_expr = 0x7f0de3d82980}, sk_argument = 8204046756560287030}}
        keysCount = 1
        i = 1
        status = true
        strat_total = 3
        currItem = 0x0
        blkno = 2198601728
        __func__ = "_bt_first"
#12 0x000055f6e520ea2a in btgettuple (scan=0x55f6e743c6b0, dir=ForwardScanDirection) at /home/andres/src/postgresql/src/backend/access/nbtree/nbtree.c:245
        so = 0x55f6e74405d0
        res = false
#13 0x000055f6e5201a6a in index_getnext_tid (scan=0x55f6e743c6b0, direction=ForwardScanDirection) at /home/andres/src/postgresql/src/backend/access/index/indexam.c:541
        found = false
        __func__ = "index_getnext_tid"
#14 0x000055f6e5201ee1 in index_getnext (scan=0x55f6e743c6b0, direction=ForwardScanDirection) at /home/andres/src/postgresql/src/backend/access/index/indexam.c:679
        heapTuple = 0x55f6e5aadec0 <CatalogSnapshotData+64>
        tid = 0x7ffc0d14ce60
#15 0x000055f6e5200347 in systable_getnext (sysscan=0x55f6e743c7c8) at /home/andres/src/postgresql/src/backend/access/index/genam.c:411
        htup = 0x7f0de627a850
        __func__ = "systable_getnext"
#16 0x000055f6e5733253 in ScanPgRelation (targetRelId=1259, indexOK=true, force_non_historic=false) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:358
        pg_class_tuple = 0x55f6e5aae2c0 <TopTransactionStateData>
        pg_class_desc = 0x7f0de3d472b0
        pg_class_scan = 0x55f6e743c7c8
        key = {{sk_flags = 0, sk_attno = 1, sk_strategy = 3, sk_subtype = 0, sk_collation = 100, sk_func = {fn_addr = 0x55f6e569cbf8 <oideq>, fn_oid = 184, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, fn_mcxt = 0x55f6e743c570, fn_expr = 0x0}, sk_argument = 1259}}
        snapshot = 0x55f6e5aade80 <CatalogSnapshotData>
        __func__ = "ScanPgRelation"
#17 0x000055f6e5736fd0 in RelationReloadNailed (relation=0x7f0de3d472b0) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2208
        pg_class_tuple = 0x4e73b0540
        relp = 0x7f0de3d472c0
#18 0x000055f6e5737414 in RelationClearRelation (relation=0x7f0de3d472b0, rebuild=true) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2343
        __func__ = "RelationClearRelation"
#19 0x000055f6e5737aaf in RelationFlushRelation (relation=0x7f0de3d472b0) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2584
        rebuild = true
#20 0x000055f6e5737bc8 in RelationCacheInvalidateEntry (relationId=1259) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2636
        relation = 0x7f0de3d472b0
#21 0x000055f6e5728fe4 in LocalExecuteInvalidationMessage (msg=0x7ffc0d14d220) at /home/andres/src/postgresql/src/backend/utils/cache/inval.c:587
        i = 20
        __func__ = "LocalExecuteInvalidationMessage"
#22 0x000055f6e55b27c0 in ReceiveSharedInvalidMessages (invalFunction=0x55f6e5728edd <LocalExecuteInvalidationMessage>, resetFunction=0x55f6e5729149 <InvalidateSystemCaches>) at /home/andres/src/postgresql/src/backend/storage/ipc/sinval.c:121
        msg = {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}
        getResult = 20
        messages = {{id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -37 '\333', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -38 '\332', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 3455}, cat = {id = -2 '\376', dbId = 12397, catId = 3455}, rc = {id = -2 '\376', dbId = 12397, relId = 3455}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 3455, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 3455}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 3455}, cat = {id = -2 '\376', dbId = 12397, catId = 3455}, rc = {id = -2 '\376', dbId = 12397, relId = 3455}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 3455, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 3455}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -38 '\332', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2663}, cat = {id = -2 '\376', dbId = 12397, catId = 2663}, rc = {id = -2 '\376', dbId = 12397, relId = 2663}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2663, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2663}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2663}, cat = {id = -2 '\376', dbId = 12397, catId = 2663}, rc = {id = -2 '\376', dbId = 12397, relId = 2663}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2663, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2663}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 1259, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2662}, cat = {id = -2 '\376', dbId = 12397, catId = 2662}, rc = {id = -2 '\376', dbId = 12397, relId = 2662}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2662, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2662}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2662}, cat = {id = -2 '\376', dbId = 12397, catId = 2662}, rc = {id = -2 '\376', dbId = 12397, relId = 2662}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2662, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2662}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 1259, relNode = 32525}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 167949, relNode = 11}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 167949, relNode = 32525}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -41 '\327', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 167949, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167943}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167948}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167947}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167946}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 1528188348}, cat = {id = 7 '\a', dbId = 12397, catId = 1528188348}, rc = {id = 7 '\a', dbId = 12397, relId = 1528188348}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 1528188348, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 1528188348}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 2483940397}, cat = {id = 6 '\006', dbId = 12397, catId = 2483940397}, rc = {id = 6 '\006', dbId = 12397, relId = 2483940397}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 2483940397, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 2483940397}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 37473943}, cat = {id = 7 '\a', dbId = 12397, catId = 37473943}, rc = {id = 7 '\a', dbId = 12397, relId = 37473943}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 37473943, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 37473943}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 2828489776}, cat = {id = 6 '\006', dbId = 12397, catId = 2828489776}, rc = {id = 6 '\006', dbId = 12397, relId = 2828489776}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 2828489776, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 2828489776}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2277595885}, cat = {id = 7 '\a', dbId = 12397, catId = 2277595885}, rc = {id = 7 '\a', dbId = 12397, relId = 2277595885}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2277595885, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2277595885}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 3442084044}, cat = {id = 6 '\006', dbId = 12397, catId = 3442084044}, rc = {id = 6 '\006', dbId = 12397, relId = 3442084044}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 3442084044, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 3442084044}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2945592578}, cat = {id = 7 '\a', dbId = 12397, catId = 2945592578}, rc = {id = 7 '\a', dbId = 12397, relId = 2945592578}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2945592578, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2945592578}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 134785355}, cat = {id = 6 '\006', dbId = 12397, catId = 134785355}, rc = {id = 6 '\006', dbId = 12397, relId = 134785355}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 134785355, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 134785355}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2621623531}, cat = {id = 7 '\a', dbId = 12397, catId = 2621623531}, rc = {id = 7 '\a', dbId = 12397, relId = 2621623531}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2621623531, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2621623531}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 3549520513}, cat = {id = 6 '\006', dbId = 12397, catId = 3549520513}, rc = {id = 6 '\006', dbId = 12397, relId = 3549520513}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 3549520513, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 3549520513}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 167949, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -37 '\333', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}}
        nextmsg = 1
        nummsgs = 20
        __func__ = "ReceiveSharedInvalidMessages"
#23 0x000055f6e5729223 in AcceptInvalidationMessages () at /home/andres/src/postgresql/src/backend/utils/cache/inval.c:681
No locals.
#24 0x000055f6e55b6825 in LockRelationOid (relid=2662, lockmode=1) at /home/andres/src/postgresql/src/backend/storage/lmgr/lmgr.c:125
        tag = {locktag_field1 = 12397, locktag_field2 = 2662, locktag_field3 = 0, locktag_field4 = 0, locktag_type = 0 '\000', locktag_lockmethodid = 1 '\001'}
        res = LOCKACQUIRE_OK
#25 0x000055f6e51e11f8 in relation_open (relationId=2662, lockmode=1) at /home/andres/src/postgresql/src/backend/access/heap/heapam.c:1132
        r = 0x55f6e545f1f6 <list_member_oid+90>
        __func__ = "relation_open"
#26 0x000055f6e5200a77 in index_open (relationId=2662, lockmode=1) at /home/andres/src/postgresql/src/backend/access/index/indexam.c:154
        r = 0x55f6e528787f <ReindexIsProcessingIndex+42>
        __func__ = "index_open"
#27 0x000055f6e5200111 in systable_beginscan (heapRelation=0x7f0de3d472b0, indexId=2662, indexOK=true, snapshot=0x55f6e5aade80 <CatalogSnapshotData>, nkeys=1, key=0x7ffc0d14d390) at /home/andres/src/postgresql/src/backend/access/index/genam.c:329
        sysscan = 0x55f6e57a285f <GetCatalogSnapshot+39>
        irel = 0x4eb00000000
        __func__ = "systable_beginscan"
#28 0x000055f6e5733243 in ScanPgRelation (targetRelId=16390, indexOK=true, force_non_historic=false) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:353
        pg_class_tuple = 0x55f6e73a8340
        pg_class_desc = 0x7f0de3d472b0
        pg_class_scan = 0x0
        key = {{sk_flags = 0, sk_attno = -2, sk_strategy = 3, sk_subtype = 0, sk_collation = 100, sk_func = {fn_addr = 0x55f6e569cbf8 <oideq>, fn_oid = 184, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, fn_mcxt = 0x55f6e743c570, fn_expr = 0x0}, sk_argument = 16390}}
        snapshot = 0x55f6e5aade80 <CatalogSnapshotData>
        __func__ = "ScanPgRelation"
#29 0x000055f6e5736c9c in RelationReloadIndexInfo (relation=0x7f0de3d5c020) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2086
        indexOK = true
        pg_class_tuple = 0x7f0de3d5c030
        relp = 0x55f6e74152f0
        __func__ = "RelationReloadIndexInfo"
#30 0x000055f6e5737487 in RelationClearRelation (relation=0x7f0de3d5c020, rebuild=true) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2361
        __func__ = "RelationClearRelation"
#31 0x000055f6e5737aaf in RelationFlushRelation (relation=0x7f0de3d5c020) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2584
        rebuild = true
#32 0x000055f6e5737bc8 in RelationCacheInvalidateEntry (relationId=16390) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2636
        relation = 0x7f0de3d5c020
#33 0x000055f6e5728fe4 in LocalExecuteInvalidationMessage (msg=0x7ffc0d14d780) at /home/andres/src/postgresql/src/backend/utils/cache/inval.c:587
        i = 22006
        __func__ = "LocalExecuteInvalidationMessage"
#34 0x000055f6e55b26d6 in ReceiveSharedInvalidMessages (invalFunction=0x55f6e5728edd <LocalExecuteInvalidationMessage>, resetFunction=0x55f6e5729149 <InvalidateSystemCaches>) at /home/andres/src/postgresql/src/backend/storage/ipc/sinval.c:91
        msg = {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 16390}, cat = {id = -2 '\376', dbId = 12397, catId = 16390}, rc = {id = -2 '\376', dbId = 12397, relId = 16390}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 16390, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 16390}}
        messages = {{id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -37 '\333', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -38 '\332', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 3455}, cat = {id = -2 '\376', dbId = 12397, catId = 3455}, rc = {id = -2 '\376', dbId = 12397, relId = 3455}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 3455, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 3455}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 3455}, cat = {id = -2 '\376', dbId = 12397, catId = 3455}, rc = {id = -2 '\376', dbId = 12397, relId = 3455}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 3455, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 3455}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -38 '\332', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2663}, cat = {id = -2 '\376', dbId = 12397, catId = 2663}, rc = {id = -2 '\376', dbId = 12397, relId = 2663}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2663, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2663}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2663}, cat = {id = -2 '\376', dbId = 12397, catId = 2663}, rc = {id = -2 '\376', dbId = 12397, relId = 2663}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2663, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2663}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 1259, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2662}, cat = {id = -2 '\376', dbId = 12397, catId = 2662}, rc = {id = -2 '\376', dbId = 12397, relId = 2662}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2662, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2662}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2662}, cat = {id = -2 '\376', dbId = 12397, catId = 2662}, rc = {id = -2 '\376', dbId = 12397, relId = 2662}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2662, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2662}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 1259, relNode = 32525}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 167949, relNode = 11}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 167949, relNode = 32525}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -41 '\327', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 167949, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167943}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167948}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167947}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167946}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 1528188348}, cat = {id = 7 '\a', dbId = 12397, catId = 1528188348}, rc = {id = 7 '\a', dbId = 12397, relId = 1528188348}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 1528188348, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 1528188348}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 2483940397}, cat = {id = 6 '\006', dbId = 12397, catId = 2483940397}, rc = {id = 6 '\006', dbId = 12397, relId = 2483940397}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 2483940397, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 2483940397}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 37473943}, cat = {id = 7 '\a', dbId = 12397, catId = 37473943}, rc = {id = 7 '\a', dbId = 12397, relId = 37473943}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 37473943, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 37473943}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 2828489776}, cat = {id = 6 '\006', dbId = 12397, catId = 2828489776}, rc = {id = 6 '\006', dbId = 12397, relId = 2828489776}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 2828489776, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 2828489776}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2277595885}, cat = {id = 7 '\a', dbId = 12397, catId = 2277595885}, rc = {id = 7 '\a', dbId = 12397, relId = 2277595885}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2277595885, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2277595885}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 3442084044}, cat = {id = 6 '\006', dbId = 12397, catId = 3442084044}, rc = {id = 6 '\006', dbId = 12397, relId = 3442084044}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 3442084044, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 3442084044}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2945592578}, cat = {id = 7 '\a', dbId = 12397, catId = 2945592578}, rc = {id = 7 '\a', dbId = 12397, relId = 2945592578}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2945592578, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2945592578}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 134785355}, cat = {id = 6 '\006', dbId = 12397, catId = 134785355}, rc = {id = 6 '\006', dbId = 12397, relId = 134785355}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 134785355, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 134785355}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2621623531}, cat = {id = 7 '\a', dbId = 12397, catId = 2621623531}, rc = {id = 7 '\a', dbId = 12397, relId = 2621623531}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2621623531, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2621623531}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 3549520513}, cat = {id = 6 '\006', dbId = 12397, catId = 3549520513}, rc = {id = 6 '\006', dbId = 12397, relId = 3549520513}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 3549520513, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 3549520513}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 167949, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -37 '\333', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}}
        nextmsg = 1
        nummsgs = 20
        __func__ = "ReceiveSharedInvalidMessages"
#35 0x000055f6e5729223 in AcceptInvalidationMessages () at /home/andres/src/postgresql/src/backend/utils/cache/inval.c:681
No locals.
#36 0x000055f6e55b6825 in LockRelationOid (relid=1259, lockmode=1) at /home/andres/src/postgresql/src/backend/storage/lmgr/lmgr.c:125
        tag = {locktag_field1 = 12397, locktag_field2 = 1259, locktag_field3 = 0, locktag_field4 = 0, locktag_type = 0 '\000', locktag_lockmethodid = 1 '\001'}
        res = LOCKACQUIRE_OK
#37 0x000055f6e51e11f8 in relation_open (relationId=1259, lockmode=1) at /home/andres/src/postgresql/src/backend/access/heap/heapam.c:1132
        r = 0x55f6e5750d79 <fmgr_info+41>
        __func__ = "relation_open"
#38 0x000055f6e51e14bd in heap_open (relationId=1259, lockmode=1) at /home/andres/src/postgresql/src/backend/access/heap/heapam.c:1298
        r = 0xb8e74132f0
        __func__ = "heap_open"
#39 0x000055f6e57331d6 in ScanPgRelation (targetRelId=16386, indexOK=true, force_non_historic=false) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:341
        pg_class_tuple = 0x0
        pg_class_desc = 0x55f6e7415350
        pg_class_scan = 0x55f6e74142d0
        key = {{sk_flags = 0, sk_attno = -2, sk_strategy = 3, sk_subtype = 0, sk_collation = 100, sk_func = {fn_addr = 0x55f6e569cbf8 <oideq>, fn_oid = 184, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, fn_mcxt = 0x55f6e743c570, fn_expr = 0x0}, sk_argument = 16386}}
        snapshot = 0x10
        __func__ = "ScanPgRelation"
#40 0x000055f6e5734b6f in RelationBuildDesc (targetRelId=16386, insertIt=false) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:1082
        relation = 0x0
        relid = 32525
        pg_class_tuple = 0x55f6e5aae2c0 <TopTransactionStateData>
        relp = 0x55f6e7415360
        __func__ = "RelationBuildDesc"
#41 0x000055f6e5737557 in RelationClearRelation (relation=0x7f0de3d56980, rebuild=true) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2446
        save_relid = 16386
        keep_tupdesc = false
        keep_partkey = 246
        newrel = 0x55f6e73f0900
        keep_rules = false
        keep_policies = 85
        keep_partdesc = 231
        __func__ = "RelationClearRelation"
#42 0x000055f6e5737aaf in RelationFlushRelation (relation=0x7f0de3d56980) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2584
        rebuild = true
#43 0x000055f6e5737bc8 in RelationCacheInvalidateEntry (relationId=16386) at /home/andres/src/postgresql/src/backend/utils/cache/relcache.c:2636
        relation = 0x7f0de3d56980
#44 0x000055f6e5728fe4 in LocalExecuteInvalidationMessage (msg=0x7ffc0d14dc70) at /home/andres/src/postgresql/src/backend/utils/cache/inval.c:587
        i = 9
        __func__ = "LocalExecuteInvalidationMessage"
#45 0x000055f6e55b27c0 in ReceiveSharedInvalidMessages (invalFunction=0x55f6e5728edd <LocalExecuteInvalidationMessage>, resetFunction=0x55f6e5729149 <InvalidateSystemCaches>) at /home/andres/src/postgresql/src/backend/storage/ipc/sinval.c:121
        msg = {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 16386}, cat = {id = -2 '\376', dbId = 12397, catId = 16386}, rc = {id = -2 '\376', dbId = 12397, relId = 16386}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 16386, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 16386}}
        getResult = 9
        messages = {{id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -37 '\333', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -38 '\332', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 3455}, cat = {id = -2 '\376', dbId = 12397, catId = 3455}, rc = {id = -2 '\376', dbId = 12397, relId = 3455}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 3455, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 3455}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 3455}, cat = {id = -2 '\376', dbId = 12397, catId = 3455}, rc = {id = -2 '\376', dbId = 12397, relId = 3455}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 3455, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 3455}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -38 '\332', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 1259, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2663}, cat = {id = -2 '\376', dbId = 12397, catId = 2663}, rc = {id = -2 '\376', dbId = 12397, relId = 2663}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2663, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2663}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2663}, cat = {id = -2 '\376', dbId = 12397, catId = 2663}, rc = {id = -2 '\376', dbId = 12397, relId = 2663}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2663, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2663}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 1259, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2662}, cat = {id = -2 '\376', dbId = 12397, catId = 2662}, rc = {id = -2 '\376', dbId = 12397, relId = 2662}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2662, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2662}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 2662}, cat = {id = -2 '\376', dbId = 12397, catId = 2662}, rc = {id = -2 '\376', dbId = 12397, relId = 2662}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 2662, relNode = 22006}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 2662}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 1259}, cat = {id = -2 '\376', dbId = 12397, catId = 1259}, rc = {id = -2 '\376', dbId = 12397, relId = 1259}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 1259, relNode = 32525}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 1259}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 167949, relNode = 11}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = 0 '\000', backend_lo = 0, rnode = {spcNode = 12397, dbNode = 167949, relNode = 32525}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -41 '\327', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 167949, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167943}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167948}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167947}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = -3 '\375', cc = {id = -3 '\375', dbId = 1663, hashValue = 12397}, cat = {id = -3 '\375', dbId = 1663, catId = 12397}, rc = {id = -3 '\375', dbId = 1663, relId = 12397}, sm = {id = -3 '\375', backend_hi = -1 '\377', backend_lo = 65535, rnode = {spcNode = 1663, dbNode = 12397, relNode = 167946}}, rm = {id = -3 '\375', dbId = 1663}, sn = {id = -3 '\375', dbId = 1663, relId = 12397}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 1528188348}, cat = {id = 7 '\a', dbId = 12397, catId = 1528188348}, rc = {id = 7 '\a', dbId = 12397, relId = 1528188348}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 1528188348, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 1528188348}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 2483940397}, cat = {id = 6 '\006', dbId = 12397, catId = 2483940397}, rc = {id = 6 '\006', dbId = 12397, relId = 2483940397}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 2483940397, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 2483940397}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 37473943}, cat = {id = 7 '\a', dbId = 12397, catId = 37473943}, rc = {id = 7 '\a', dbId = 12397, relId = 37473943}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 37473943, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 37473943}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 2828489776}, cat = {id = 6 '\006', dbId = 12397, catId = 2828489776}, rc = {id = 6 '\006', dbId = 12397, relId = 2828489776}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 2828489776, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 2828489776}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2277595885}, cat = {id = 7 '\a', dbId = 12397, catId = 2277595885}, rc = {id = 7 '\a', dbId = 12397, relId = 2277595885}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2277595885, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2277595885}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 3442084044}, cat = {id = 6 '\006', dbId = 12397, catId = 3442084044}, rc = {id = 6 '\006', dbId = 12397, relId = 3442084044}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 3442084044, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 3442084044}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2945592578}, cat = {id = 7 '\a', dbId = 12397, catId = 2945592578}, rc = {id = 7 '\a', dbId = 12397, relId = 2945592578}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2945592578, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2945592578}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 134785355}, cat = {id = 6 '\006', dbId = 12397, catId = 134785355}, rc = {id = 6 '\006', dbId = 12397, relId = 134785355}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 134785355, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 134785355}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 12397, hashValue = 2621623531}, cat = {id = 7 '\a', dbId = 12397, catId = 2621623531}, rc = {id = 7 '\a', dbId = 12397, relId = 2621623531}, sm = {id = 7 '\a', backend_hi = -10 '\366', backend_lo = 58325, rnode = {spcNode = 12397, dbNode = 2621623531, relNode = 22006}}, rm = {id = 7 '\a', dbId = 12397}, sn = {id = 7 '\a', dbId = 12397, relId = 2621623531}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 12397, hashValue = 3549520513}, cat = {id = 6 '\006', dbId = 12397, catId = 3549520513}, rc = {id = 6 '\006', dbId = 12397, relId = 3549520513}, sm = {id = 6 '\006', backend_hi = 7 '\a', backend_lo = 58326, rnode = {spcNode = 12397, dbNode = 3549520513, relNode = 22006}}, rm = {id = 6 '\006', dbId = 12397}, sn = {id = 6 '\006', dbId = 12397, relId = 3549520513}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 12397, hashValue = 167949}, cat = {id = -2 '\376', dbId = 12397, catId = 167949}, rc = {id = -2 '\376', dbId = 12397, relId = 167949}, sm = {id = -2 '\376', backend_hi = -114 '\216', backend_lo = 58738, rnode = {spcNode = 12397, dbNode = 167949, relNode = 0}}, rm = {id = -2 '\376', dbId = 12397}, sn = {id = -2 '\376', dbId = 12397, relId = 167949}}, {id = -5 '\373', cc = {id = -5 '\373', dbId = 12397, hashValue = 2608}, cat = {id = -5 '\373', dbId = 12397, catId = 2608}, rc = {id = -5 '\373', dbId = 12397, relId = 2608}, sm = {id = -5 '\373', backend_hi = -37 '\333', backend_lo = 3348, rnode = {spcNode = 12397, dbNode = 2608, relNode = 11}}, rm = {id = -5 '\373', dbId = 12397}, sn = {id = -5 '\373', dbId = 12397, relId = 2608}}}
        nextmsg = 1
        nummsgs = 20
        __func__ = "ReceiveSharedInvalidMessages"
#46 0x000055f6e5729223 in AcceptInvalidationMessages () at /home/andres/src/postgresql/src/backend/utils/cache/inval.c:681
No locals.
#47 0x000055f6e55b6825 in LockRelationOid (relid=16384, lockmode=3) at /home/andres/src/postgresql/src/backend/storage/lmgr/lmgr.c:125
        tag = {locktag_field1 = 12397, locktag_field2 = 16384, locktag_field3 = 0, locktag_field4 = 0, locktag_type = 0 '\000', locktag_lockmethodid = 1 '\001'}
        res = LOCKACQUIRE_OK
#48 0x000055f6e5386187 in lock_and_open_sequence (seq=0x55f6e743fed0) at /home/andres/src/postgresql/src/backend/commands/sequence.c:1059
        currentOwner = 0x55f6e73b0990
        thislxid = 200412
#49 0x000055f6e538629e in init_sequence (relid=16384, p_elm=0x7ffc0d14de38, p_rel=0x7ffc0d14de30) at /home/andres/src/postgresql/src/backend/commands/sequence.c:1124
        elm = 0x55f6e743fed0
        seqrel = 0x60
        found = true
        __func__ = "init_sequence"
#50 0x000055f6e5385032 in nextval_internal (relid=16384, check_permissions=true) at /home/andres/src/postgresql/src/backend/commands/sequence.c:592
        elm = 0x55f6e577962e <AllocSetAlloc+698>
        seqrel = 0x7ffc0d14e0a0
        buf = 0
        page = 0x4d430000 <error: Cannot access memory at address 0x4d430000>
        pgstuple = 0x55f6e5723c42 <int4hashfast+23>
        pgsform = 0x7ffc0d14dea0
        seqdatatuple = {t_len = 16, t_self = {ip_blkid = {bi_hi = 0, bi_lo = 0}, ip_posid = 42336}, t_tableOid = 22006, t_data = 0x0}
        seq = 0x55f6e743ac78
        incby = -3334848951855292406
        maxv = 94518896342214
        minv = 99003719328
        cache = 94518930289304
        log = 94518929721808
        fetch = 139697633736304
        last = 94518929721808
        result = 23
        next = 94518899785832
        rescnt = 0
        cycle = false
        logit = false
        __func__ = "nextval_internal"
#51 0x000055f6e5384fec in nextval_oid (fcinfo=0x55f6e743b810) at /home/andres/src/postgresql/src/backend/commands/sequence.c:564
        relid = 16384
#52 0x000055f6e53de11b in ExecInterpExpr (state=0x55f6e743b2b8, econtext=0x55f6e743af08, isnull=0x7ffc0d14e1d7) at /home/andres/src/postgresql/src/backend/executor/execExprInterp.c:678
        fcinfo = 0x55f6e743b810
        argnull = 0x55f6e743bb50
        argno = 1
        d = 94518903500096
        op = 0x55f6e743bc28
        resultslot = 0x55f6e743b1b8
        innerslot = 0x0
        outerslot = 0x0
        scanslot = 0x0
        dispatch_table = {0x55f6e53dd811 <ExecInterpExpr+148>, 0x55f6e53dd838 <ExecInterpExpr+187>, 0x55f6e53dd85b <ExecInterpExpr+222>, 0x55f6e53dd87e <ExecInterpExpr+257>, 0x55f6e53dd8a1 <ExecInterpExpr+292>, 0x55f6e53dd92e <ExecInterpExpr+433>, 0x55f6e53dd9bb <ExecInterpExpr+574>, 0x55f6e53dda48 <ExecInterpExpr+715>, 0x55f6e53ddaf9 <ExecInterpExpr+892>, 0x55f6e53ddbaa <ExecInterpExpr+1069>, 0x55f6e53ddc67 <ExecInterpExpr+1258>, 0x55f6e53ddc95 <ExecInterpExpr+1304>, 0x55f6e53ddd5a <ExecInterpExpr+1501>, 0x55f6e53dde1f <ExecInterpExpr+1698>, 0x55f6e53ddee4 <ExecInterpExpr+1895>, 0x55f6e53ddf48 <ExecInterpExpr+1995>, 0x55f6e53ddffa <ExecInterpExpr+2173>, 0x55f6e53de030 <ExecInterpExpr+2227>, 0x55f6e53de09d <ExecInterpExpr+2336>, 0x55f6e53de15a <ExecInterpExpr+2525>, 0x55f6e53de188 <ExecInterpExpr+2571>, 0x55f6e53de1b6 <ExecInterpExpr+2617>, 0x55f6e53de1c1 <ExecInterpExpr+2628>, 0x55f6e53de229 <ExecInterpExpr+2732>, 0x55f6e53de282 <ExecInterpExpr+2821>, 0x55f6e53de28d <ExecInterpExpr+2832>, 0x55f6e53de2f5 <ExecInterpExpr+2936>, 0x55f6e53de34e <ExecInterpExpr+3025>, 0x55f6e53de386 <ExecInterpExpr+3081>, 0x55f6e53de3fb <ExecInterpExpr+3198>, 0x55f6e53de426 <ExecInterpExpr+3241>, 0x55f6e53de471 <ExecInterpExpr+3316>, 0x55f6e53de4bf <ExecInterpExpr+3394>, 0x55f6e53de51a <ExecInterpExpr+3485>, 0x55f6e53de55c <ExecInterpExpr+3551>, 0x55f6e53de5a1 <ExecInterpExpr+3620>, 0x55f6e53de5cf <ExecInterpExpr+3666>, 0x55f6e53de5fd <ExecInterpExpr+3712>, 0x55f6e53de637 <ExecInterpExpr+3770>, 0x55f6e53de69a <ExecInterpExpr+3869>, 0x55f6e53de6fd <ExecInterpExpr+3968>, 0x55f6e53de737 <ExecInterpExpr+4026>, 0x55f6e53de765 <ExecInterpExpr+4072>, 0x55f6e53de793 <ExecInterpExpr+4118>, 0x55f6e53de7c3 <ExecInterpExpr+4166>, 0x55f6e53de8af <ExecInterpExpr+4402>, 0x55f6e53de905 <ExecInterpExpr+4488>, 0x55f6e53deb11 <ExecInterpExpr+5012>, 0x55f6e53dec10 <ExecInterpExpr+5267>, 0x55f6e53ded00 <ExecInterpExpr+5507>, 0x55f6e53dede9 <ExecInterpExpr+5740>, 0x55f6e53dee10 <ExecInterpExpr+5779>, 0x55f6e53dee37 <ExecInterpExpr+5818>, 0x55f6e53dee5e <ExecInterpExpr+5857>, 0x55f6e53dee85 <ExecInterpExpr+5896>, 0x55f6e53deeb3 <ExecInterpExpr+5942>, 0x55f6e53deeda <ExecInterpExpr+5981>, 0x55f6e53df026 <ExecInterpExpr+6313>, 0x55f6e53df13b <ExecInterpExpr+6590>, 0x55f6e53df162 <ExecInterpExpr+6629>, 0x55f6e53df190 <ExecInterpExpr+6675>, 0x55f6e53df1be <ExecInterpExpr+6721>, 0x55f6e53df1ec <ExecInterpExpr+6767>, 0x55f6e53df242 <ExecInterpExpr+6853>, 0x55f6e53df269 <ExecInterpExpr+6892>, 0x55f6e53df290 <ExecInterpExpr+6931>, 0x55f6e53de839 <ExecInterpExpr+4284>, 0x55f6e53df30c <ExecInterpExpr+7055>, 0x55f6e53df333 <ExecInterpExpr+7094>, 0x55f6e53df2b7 <ExecInterpExpr+6970>, 0x55f6e53df2e5 <ExecInterpExpr+7016>, 0x55f6e53df35a <ExecInterpExpr+7133>, 0x55f6e53df381 <ExecInterpExpr+7172>, 0x55f6e53df424 <ExecInterpExpr+7335>, 0x55f6e53df44b <ExecInterpExpr+7374>, 0x55f6e53df4ee <ExecInterpExpr+7537>, 0x55f6e53df51c <ExecInterpExpr+7583>, 0x55f6e53df54a <ExecInterpExpr+7629>, 0x55f6e53df598 <ExecInterpExpr+7707>, 0x55f6e53df63b <ExecInterpExpr+7870>, 0x55f6e53df6c1 <ExecInterpExpr+8004>, 0x55f6e53df7b0 <ExecInterpExpr+8243>, 0x55f6e53df846 <ExecInterpExpr+8393>, 0x55f6e53df9e2 <ExecInterpExpr+8805>, 0x55f6e53dfbd6 <ExecInterpExpr+9305>, 0x55f6e53dfc04 <ExecInterpExpr+9351>, 0x55f6e53dfc32 <ExecInterpExpr+9397>}
#53 0x000055f6e53dfcae in ExecInterpExprStillValid (state=0x55f6e743b2b8, econtext=0x55f6e743af08, isNull=0x7ffc0d14e1d7) at /home/andres/src/postgresql/src/backend/executor/execExprInterp.c:1786
No locals.
#54 0x000055f6e542225e in ExecEvalExprSwitchContext (state=0x55f6e743b2b8, econtext=0x55f6e743af08, isNull=0x7ffc0d14e1d7) at /home/andres/src/postgresql/src/include/executor/executor.h:303
        retDatum = 128
        oldContext = 0x55f6e743a560
#55 0x000055f6e54222c7 in ExecProject (projInfo=0x55f6e743b2b0) at /home/andres/src/postgresql/src/include/executor/executor.h:337
        econtext = 0x55f6e743af08
        state = 0x55f6e743b2b8
        slot = 0x55f6e743b1b8
        isnull = false
#56 0x000055f6e542249e in ExecResult (pstate=0x55f6e743adf0) at /home/andres/src/postgresql/src/backend/executor/nodeResult.c:136
        node = 0x55f6e743adf0
        outerTupleSlot = 0x940
        outerPlan = 0x0
        econtext = 0x55f6e743af08
#57 0x000055f6e53f2c42 in ExecProcNodeFirst (node=0x55f6e743adf0) at /home/andres/src/postgresql/src/backend/executor/execProcnode.c:445
No locals.
#58 0x000055f6e541c327 in ExecProcNode (node=0x55f6e743adf0) at /home/andres/src/postgresql/src/include/executor/executor.h:237
No locals.
#59 0x000055f6e541f327 in ExecModifyTable (pstate=0x55f6e743a9e0) at /home/andres/src/postgresql/src/backend/executor/nodeModifyTable.c:2027
        node = 0x55f6e743a9e0
        proute = 0x0
        estate = 0x55f6e743a678
        operation = CMD_INSERT
        saved_resultRelInfo = 0x0
        resultRelInfo = 0x55f6e743a8c8
        subplanstate = 0x55f6e743adf0
        junkfilter = 0x0
        slot = 0x7ffc0d14e430
        planSlot = 0x55f6e743a678
        tupleid = 0x55f6e743c078
        tuple_ctid = {ip_blkid = {bi_hi = 58687, bi_lo = 22006}, ip_posid = 0}
        oldtupdata = {t_len = 3846304154, t_self = {ip_blkid = {bi_hi = 22006, bi_lo = 0}, ip_posid = 0}, t_tableOid = 0, t_data = 0x7ffc0d14e320}
        oldtuple = 0x0
        __func__ = "ExecModifyTable"
#60 0x000055f6e53f2c42 in ExecProcNodeFirst (node=0x55f6e743a9e0) at /home/andres/src/postgresql/src/backend/executor/execProcnode.c:445
No locals.
#61 0x000055f6e53e7aef in ExecProcNode (node=0x55f6e743a9e0) at /home/andres/src/postgresql/src/include/executor/executor.h:237
No locals.
#62 0x000055f6e53ea4d9 in ExecutePlan (estate=0x55f6e743a678, planstate=0x55f6e743a9e0, use_parallel_mode=false, operation=CMD_INSERT, sendTuples=false, numberTuples=0, direction=ForwardScanDirection, dest=0x55f6e73a7678, execute_once=true) at /home/andres/src/postgresql/src/backend/executor/execMain.c:1721
        slot = 0x55f6e73a73e0
        current_tuple_count = 0
#63 0x000055f6e53e80f6 in standard_ExecutorRun (queryDesc=0x55f6e739ef88, direction=ForwardScanDirection, count=0, execute_once=true) at /home/andres/src/postgresql/src/backend/executor/execMain.c:362
        estate = 0x55f6e743a678
        operation = CMD_INSERT
        dest = 0x55f6e73a7678
        sendTuples = false
        oldcontext = 0x55f6e739ee70
        __func__ = "standard_ExecutorRun"
#64 0x000055f6e53e7f0c in ExecutorRun (queryDesc=0x55f6e739ef88, direction=ForwardScanDirection, count=0, execute_once=true) at /home/andres/src/postgresql/src/backend/executor/execMain.c:305
No locals.
#65 0x000055f6e55dd7e6 in ProcessQuery (plan=0x55f6e73a7500, sourceText=0x55f6e737d438 "insert into t (b,c) values (1,1);", params=0x0, queryEnv=0x0, dest=0x55f6e73a7678, completionTag=0x7ffc0d14e6d0 "") at /home/andres/src/postgresql/src/backend/tcop/pquery.c:161
        queryDesc = 0x55f6e739ef88
#66 0x000055f6e55df188 in PortalRunMulti (portal=0x55f6e73e5038, isTopLevel=true, setHoldSnapshot=false, dest=0x55f6e73a7678, altdest=0x55f6e73a7678, completionTag=0x7ffc0d14e6d0 "") at /home/andres/src/postgresql/src/backend/tcop/pquery.c:1286
        pstmt = 0x55f6e73a7500
        active_snapshot_set = true
        stmtlist_item = 0x55f6e73a7618
#67 0x000055f6e55de742 in PortalRun (portal=0x55f6e73e5038, count=9223372036854775807, isTopLevel=true, run_once=true, dest=0x55f6e73a7678, altdest=0x55f6e73a7678, completionTag=0x7ffc0d14e6d0 "") at /home/andres/src/postgresql/src/backend/tcop/pquery.c:799
        save_exception_stack = 0x7ffc0d14e810
        save_context_stack = 0x0
        local_sigjmp_buf = {{__jmpbuf = {0, 2133478022532337521, 94518893857616, 140720527961408, 0, 0, 2133478022492491633, 5300299599030161265}, __mask_was_saved = 0, __saved_mask = {__val = {94518900186830, 94518929721744, 112, 4869, 94518929511200, 94518929684088, 112, 0, 0, 94518929948024, 0, 94518929684200, 112, 219473504, 94518929684088, 94518929511200}}}}
        result = false
        nprocessed = 0
        saveTopTransactionResourceOwner = 0x55f6e73ad0e8
        saveTopTransactionContext = 0x55f6e7403af0
        saveActivePortal = 0x0
        saveResourceOwner = 0x55f6e73ad0e8
        savePortalContext = 0x0
        saveMemoryContext = 0x55f6e7403af0
        __func__ = "PortalRun"
#68 0x000055f6e55d82fd in exec_simple_query (query_string=0x55f6e737d438 "insert into t (b,c) values (1,1);") at /home/andres/src/postgresql/src/backend/tcop/postgres.c:1122
        parsetree = 0x55f6e737e308
        portal = 0x55f6e73e5038
        snapshot_set = true
        commandTag = 0x55f6e5971820 "INSERT"
        completionTag = "\000\000\000\000\002\000\000\000\034\071v\345\366U\000\000\000\000\000\000\000\000\000\000P\330\067\347!\000\000\000 \347\024\r\374\177\000\000o@v\345\366U\000\000`\347\024\r\004\000\000\000\000\000\000\000\000\000\000"
        querytree_list = 0x55f6e737f098
        plantree_list = 0x55f6e73a7640
        receiver = 0x55f6e73a7678
        format = 0
        dest = DestRemote
        oldcontext = 0x55f6e7403af0
        parsetree_list = 0x55f6e737e368
        parsetree_item = 0x55f6e737e340
        save_log_statement_stats = false
        was_logged = false
        use_implicit_block = false
        msec_str = "`\347\024\r\374\177\000\000\005\017v\345\366U\000\000\006\000\000\000!\000\000\000\070\324\067\347\366U\000"
        __func__ = "exec_simple_query"
#69 0x000055f6e55dc8ab in PostgresMain (argc=1, argv=0x55f6e73ab648, dbname=0x55f6e73ab540 "postgres", username=0x55f6e73ab520 "andres") at /home/andres/src/postgresql/src/backend/tcop/postgres.c:4159
        query_string = 0x55f6e737d438 "insert into t (b,c) values (1,1);"
        firstchar = 81
        input_message = {data = 0x55f6e737d438 "insert into t (b,c) values (1,1);", len = 34, maxlen = 1024, cursor = 34}
        local_sigjmp_buf = {{__jmpbuf = {0, 2133478022354079601, 94518893857616, 140720527961408, 0, 0, 2133478022576377713, 5300299600075067249}, __mask_was_saved = 1, __saved_mask = {__val = {0, 16, 0, 0, 0, 4869, 0, 33943971976, 94518929516680, 94518929516656, 94518929511200, 140720527960336, 94518900188034, 94518929516680, 94518929516680, 4870}}}}
        send_ready_for_query = false
        disable_idle_in_transaction_timeout = false
        __func__ = "PostgresMain"
#70 0x000055f6e5535ce4 in BackendRun (port=0x55f6e73a10b0) at /home/andres/src/postgresql/src/backend/postmaster/postmaster.c:4361
        av = 0x55f6e73ab648
        maxac = 2
        ac = 1
        secs = 587288130
        usecs = 313711
        i = 1
        __func__ = "BackendRun"
#71 0x000055f6e55353df in BackendStartup (port=0x55f6e73a10b0) at /home/andres/src/postgresql/src/backend/postmaster/postmaster.c:4033
        bn = 0x55f6e73a0510
        pid = 0
        __func__ = "BackendStartup"
#72 0x000055f6e5531674 in ServerLoop () at /home/andres/src/postgresql/src/backend/postmaster/postmaster.c:1706
        port = 0x55f6e73a10b0
        i = 1
        rmask = {fds_bits = {16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
        selres = 1
        now = 1533972930
        readmask = {fds_bits = {24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
        nSockets = 5
        last_lockfile_recheck_time = 1533972883
        last_touch_time = 1533971868
        __func__ = "ServerLoop"
#73 0x000055f6e5530ea6 in PostmasterMain (argc=45, argv=0x55f6e7377340) at /home/andres/src/postgresql/src/backend/postmaster/postmaster.c:1379
        opt = -1
        status = 0
        userDoption = 0x55f6e7399e50 "/srv/dev/pgdev-dev/"
        listen_addr_saved = true
        i = 64
        output_config_variable = 0x0
        __func__ = "PostmasterMain"
#74 0x000055f6e5456112 in main (argc=45, argv=0x55f6e7377340) at /home/andres/src/postgresql/src/backend/main/main.c:228
        do_check_root = true

Greetings,

Andres Freund




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 07:57  Andres Freund <andres@anarazel.de>
  parent: Andres Freund <andres@anarazel.de>
  1 sibling, 1 reply; 27+ messages in thread

From: Andres Freund @ 2018-08-11 07:57 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

Hi,

On 2018-08-11 00:46:25 -0700, Andres Freund wrote:
> Below you can find the bt full showing a bunch of nested invalidations. Looking.

Hm. I wonder if the attached fixes the issue for you.  If it's this I
don't understand why this doesn't occur on older branches...

I've not yet been able to reliably reproduce the issue without the
patch, so I'm not sure it means much that it didn't reoccur afterwards.

- Andres

Attachments:

  [text/x-diff] patch.diff (1.9K, ../../20180811075756.rc27ctja76b5lna6@alap3.anarazel.de/2-patch.diff)
  download | inline diff:
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index 1d43a165ad0..3b6d6047608 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -3278,6 +3278,8 @@ ApplyLogicalMappingFile(HTAB *tuplecid_data, Oid relid, const char *fname)
 			new_ent->combocid = ent->combocid;
 		}
 	}
+
+	CloseTransientFile(fd);
 }
 
 
diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c
index f4374d077be..ae33302ecf1 100644
--- a/src/backend/storage/smgr/md.c
+++ b/src/backend/storage/smgr/md.c
@@ -767,7 +767,7 @@ mdread(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum,
 	if (nbytes != BLCKSZ)
 	{
 		if (nbytes < 0)
-			ereport(ERROR,
+			ereport(PANIC,
 					(errcode_for_file_access(),
 					 errmsg("could not read block %u in file \"%s\": %m",
 							blocknum, FilePathName(v->mdfd_vfd))));
@@ -783,7 +783,7 @@ mdread(SMgrRelation reln, ForkNumber forknum, BlockNumber blocknum,
 		if (zero_damaged_pages || InRecovery)
 			MemSet(buffer, 0, BLCKSZ);
 		else
-			ereport(ERROR,
+			ereport(PANIC,
 					(errcode(ERRCODE_DATA_CORRUPTED),
 					 errmsg("could not read block %u in file \"%s\": read only %d of %d bytes",
 							blocknum, FilePathName(v->mdfd_vfd),
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index 6125421d39a..8737f77a24c 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -2206,7 +2206,8 @@ RelationReloadNailed(Relation relation)
 			relation->rd_isvalid = true;
 
 			pg_class_tuple = ScanPgRelation(RelationGetRelid(relation),
-											true, false);
+											RelationGetRelid(relation) != ClassOidIndexId,
+											false);
 			relp = (Form_pg_class) GETSTRUCT(pg_class_tuple);
 			memcpy(relation->rd_rel, relp, CLASS_TUPLE_SIZE);
 			heap_freetuple(pg_class_tuple);

^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 13:11  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Andres Freund <andres@anarazel.de>
  1 sibling, 0 replies; 27+ messages in thread

From: Tomas Vondra @ 2018-08-11 13:11 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers



On 08/11/2018 09:34 AM, Andres Freund wrote:
> Hi,
> 
> On 2018-08-11 01:55:43 +0200, Tomas Vondra wrote:
>> On 08/10/2018 11:59 PM, Tomas Vondra wrote:
>>>
>>> ...
>>>
>>> I suspect there's some other ingredient, e.g. some manipulation with the
>>> subscription. Or maybe it's not needed at all and I'm just imagining things.
>>>
>>
>> Indeed, the manipulation with the subscription seems to be the key here.
>> I pretty reliably get the 'could not read block' error when doing this:
>>
>> 1) start the insert pgbench
>>
>>    pgbench -n -c 4 -T 300 -p 5433 -f insert.sql test
>>
>> 2) start the vacuum full pgbench
>>
>>    pgbench -n -f vacuum.sql -T 300 -p 5433 test
> 
> Just to be clear: 5433 is the subscriber, right? I tried it with both,
> but it's not clear what you meant with either the previous or the this
> email.
> 

Sorry for the confusion, 5433 was the publisher - I reinitialized the
cluster sometime after the initial report, and happened to swap the port
numbers. That is, both pgbench commands run on the publisher, while the
subscriber tries to sync the table (and fails due to duplicate values).

I can reproduce it pretty reliably, although it may take a couple of
sync tries from the subscriber.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 13:14  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Andres Freund <andres@anarazel.de>
  1 sibling, 1 reply; 27+ messages in thread

From: Tomas Vondra @ 2018-08-11 13:14 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers



On 08/11/2018 09:46 AM, Andres Freund wrote:
> On 2018-08-11 00:34:15 -0700, Andres Freund wrote:
>> I've run this numerous times now, and I haven't triggered it yet :/
> 
> Heh, I hit it literally seconds after hitting send:
> 
> 2018-08-11 00:35:52.804 PDT [2196][9/14864] LOG:  automatic analyze of table "postgres.pg_catalog.pg_depend" system usage: CPU: user: 0.02 s, system: 0.00 s, elapsed: 0.15 s
> 2018-08-11 00:36:00.391 PDT [2196][9/14866] LOG:  automatic analyze of table "postgres.public.t" system usage: CPU: user: 0.25 s, system: 0.02 s, elapsed: 7.56 s
> 2018-08-11 00:36:00.399 PDT [2171][4/200412] PANIC:  could not read block 3 in file "base/12397/167946": read only 0 of 8192 bytes
> 2018-08-11 00:36:00.399 PDT [2171][4/200412] STATEMENT:  insert into t (b,c) values (1,1);
> 2018-08-11 00:36:00.410 PDT [2196][9/14868] LOG:  skipping vacuum of "pg_class" --- lock not available
> 2018-08-11 00:36:00.448 PDT [389][] LOG:  server process (PID 2171) was terminated by signal 6: Aborted
> 2018-08-11 00:36:00.448 PDT [389][] DETAIL:  Failed process was running: insert into t (b,c) values (1,1);
> 2018-08-11 00:36:00.448 PDT [389][] LOG:  terminating any other active server processes
> 
> Below you can find the bt full showing a bunch of nested invalidations. Looking.
> 

Hmmm, it's difficult to compare "bt full" output, but my backtraces look
somewhat different (and all the backtraces I'm seeing are 100% exactly
the same). Attached for comparison.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Core was generated by `postgres: user test [local] INSERT             '.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	}
(gdb) bt full
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
        set = {__val = {0 <repeats 12 times>, 140723895972192, 10983728, 0, 1024}}
        pid = <optimized out>
        tid = <optimized out>
#1  0x000074355af74800 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x0, sa_sigaction = 0x0}, sa_mask = {__val = {0 <repeats 11 times>, 24861680, 24859152, 140723895972608, 127772512011520, 127772511994880}}, sa_flags = 1526390557, sa_restorer = 0x0}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x0000000000a1d728 in errfinish (dummy=0) at elog.c:557
        edata = 0xfc2e80 <errordata>
        elevel = 22
        oldcontext = 0x1873fc0
        econtext = 0x0
        __func__ = "errfinish"
#3  0x00000000008ae18c in mdread (reln=0x184bc30, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x74354ce15c00 "") at md.c:786
        seekpos = 24576
        nbytes = 0
        v = 0x17dbbe8
        __func__ = "mdread"
#4  0x00000000008b0abb in smgrread (reln=0x184bc30, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x74354ce15c00 "") at smgr.c:628
No locals.
#5  0x0000000000870ea6 in ReadBuffer_common (smgr=0x184bc30, relpersistence=112 'p', forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0, hit=0x7ffcd5d4b5eb) at bufmgr.c:890
        io_start = {tv_sec = 140723895973204, tv_nsec = 127772266994688}
        io_time = {tv_sec = 7882407936, tv_nsec = 2305843014776551140}
        bufHdr = 0x74354b931d80
        bufBlock = 0x74354ce15c00
        found = false
        isExtend = false
        isLocalBuf = false
        __func__ = "ReadBuffer_common"
#6  0x00000000008707c9 in ReadBufferExtended (reln=0x74355be49850, forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0) at bufmgr.c:664
        hit = false
        buf = 32764
        __func__ = "ReadBufferExtended"
#7  0x00000000008706a2 in ReadBuffer (reln=0x74355be49850, blockNum=3) at bufmgr.c:596
No locals.
#8  0x0000000000500682 in _bt_getbuf (rel=0x74355be49850, blkno=3, access=1) at nbtpage.c:736
        buf = 29749
        __func__ = "_bt_getbuf"
#9  0x00000000004ff413 in _bt_getroot (rel=0x74355be49850, access=1) at nbtpage.c:282
        metabuf = 0
        metapg = 0x50c004 <_bt_preprocess_keys+320> "\351\365\004"
        metaopaque = 0x7ffcd5d4b7a0
        rootbuf = 0
        rootpage = 0xd5d4bde0 <error: Cannot access memory at address 0xd5d4bde0>
        rootopaque = 0x1874100
        rootblkno = 3
        rootlevel = 1
        metad = 0x18534c8
        __func__ = "_bt_getroot"
#10 0x0000000000506b0f in _bt_search (rel=0x74355be49850, keysz=1, scankey=0x7ffcd5d4c0d0, nextkey=false, bufP=0x7ffcd5d4cadc, access=1, snapshot=0xf79ba0 <CatalogSnapshotData>) at nbtsearch.c:104
        stack_in = 0x0
        page_access = 1
#11 0x0000000000508280 in _bt_first (scan=0x1874100, dir=ForwardScanDirection) at nbtsearch.c:1060
        rel = 0x74355be49850
        so = 0x187a030
        buf = 0
        stack = 0x7ffcd5d4cb20
        offnum = 0
        strat = 3
        nextkey = false
        goback = false
        startKeys = {0x1874308, 0x10, 0x2, 0x0, 0x7c0000006b, 0x7000000077, 0x17e8c68, 0x17d6918, 0x17e85f0, 0xa5f2ceeaea997a00, 0x48, 0x74355b30bae0 <main_arena>, 0x20d8, 0x476c10 <_start>, 0x7ffcd5d4e950, 0x0, 0x48, 0x1874308, 0x4000, 0x1874350, 0x7ffcd5d4cae0, 
          0xa4c64d <AllocSetAlloc+1464>, 0x48, 0x1873fc0, 0x0, 0x80, 0x18742f0, 0x401874098, 0x1873fc0, 0xa56a1f <palloc+244>, 0x4767f0 <memcmp@plt>, 0x1cd0}
        scankeys = {{sk_flags = 196608, sk_attno = 1, sk_strategy = 0, sk_subtype = 0, sk_collation = 100, sk_func = {fn_addr = 0x4f8fd2 <btoidcmp>, fn_oid = 356, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, 
              fn_mcxt = 0x1873fc0, fn_expr = 0x0}, sk_argument = 16391}, {sk_flags = 0, sk_attno = -3430, sk_strategy = 35269, sk_subtype = 3587490352, sk_collation = 32764, sk_func = {fn_addr = 0x93940002017b3bf0, fn_oid = 3587490212, fn_nargs = 32764, 
              fn_strict = false, fn_retset = false, fn_stats = 88 'X', fn_extra = 0x1000006f2, fn_mcxt = 0x74354b3eaf84, fn_expr = 0x7ffcd5d4c170}, sk_argument = 9043557}, {sk_flags = -707477120, sk_attno = 1, sk_strategy = 0, sk_subtype = 1262399364, 
            sk_collation = 29749, sk_func = {fn_addr = 0x7ffcd5d4c190, fn_oid = 9044149, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 192 '\300', fn_extra = 0x74354b3eaf84, fn_mcxt = 0x7ffcd5d4c1c0, fn_expr = 0x8a207f <LWLockRelease+295>}, 
            sk_argument = 10634124628011041216}, {sk_flags = 1262399360, sk_attno = 29749, sk_strategy = 0, sk_subtype = 1, sk_collation = 0, sk_func = {fn_addr = 0x2000000200ba2970, fn_oid = 24, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 224 '\340', 
              fn_extra = 0x4b3eab80, fn_mcxt = 0x18706f8, fn_expr = 0x7ffcd5d4c250}, sk_argument = 10798669}, {sk_flags = 24, sk_attno = 0, sk_strategy = 0, sk_subtype = 24872288, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 32, fn_nargs = 0, fn_strict = false, 
              fn_retset = false, fn_stats = 200 '\310', fn_extra = 0x20184bc30, fn_mcxt = 0x17b8560, fn_expr = 0x8709be <ReadBuffer_common+291>}, sk_argument = 70368744179327}, {sk_flags = 6360, sk_attno = 0, sk_strategy = 0, sk_subtype = 1, sk_collation = 32624, 
            sk_func = {fn_addr = 0x186ffa0, fn_oid = 3587490448, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 31 '\037', fn_extra = 0x74354b925840, fn_mcxt = 0x18, fn_expr = 0x18706e0}, sk_argument = 24872288}, {sk_flags = 0, sk_attno = 0, 
            sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x7ffcd5d4c2c0, fn_oid = 7610079, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0xde00000000, fn_mcxt = 0x18706e0, fn_expr = 0x18706e0}, 
            sk_argument = 140723895976672}, {sk_flags = 7610416, sk_attno = 0, sk_strategy = 0, sk_subtype = 25626208, sk_collation = 0, sk_func = {fn_addr = 0x18706e0, fn_oid = 3587491392, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 73 'I', 
              fn_extra = 0x7ffcd5d4c324, fn_mcxt = 0x7ffcd5d4dfe0, fn_expr = 0x7da4b0 <eval_const_expressions_mutator>}, sk_argument = 25625536}, {sk_flags = 0, sk_attno = 1, sk_strategy = 0, sk_subtype = 1267883684, sk_collation = 29749, sk_func = {
              fn_addr = 0x2000000100000003, fn_oid = 31758416, fn_nargs = 2, fn_strict = false, fn_retset = 32, fn_stats = 112 'p', fn_extra = 0x8a1781 <LWLockAcquire+207>, fn_mcxt = 0x1d5d40000, fn_expr = 0x200000024b925ea4}, sk_argument = 140723895976900}, {
            sk_flags = 1283374080, sk_attno = 29749, sk_strategy = 0, sk_subtype = 3587490736, sk_collation = 32764, sk_func = {fn_addr = 0x50e641 <_bt_check_natts+72>, fn_oid = 3587490720, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 192 '\300', 
              fn_extra = 0x74354c7ebc00, fn_mcxt = 0x82be00004003, fn_expr = 0x7ffcd5d4c770}, sk_argument = 10645898}, {sk_flags = 16387, sk_attno = 0, sk_strategy = 0, sk_subtype = 33470, sk_collation = 0, sk_func = {fn_addr = 0x4003, fn_oid = 3587494432, 
              fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x2000000000000}, sk_argument = 33470}, {sk_flags = 16387, sk_attno = 0, sk_strategy = 0, sk_subtype = 3455, sk_collation = 0, sk_func = {
              fn_addr = 0x7ffcd5d4c440, fn_oid = 1541708672, fn_nargs = 29749, fn_strict = false, fn_retset = false, fn_stats = 3 '\003', fn_extra = 0x7ffcd5d4c7f0, fn_mcxt = 0xa2718a <FunctionCall2Coll+160>, fn_expr = 0x4003}, sk_argument = 16391}, {
            sk_flags = -707476288, sk_attno = 0, sk_strategy = 0, sk_subtype = 24878696, sk_collation = 0, sk_func = {fn_addr = 0x17b9e68, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x2000000000000, fn_mcxt = 0x4007, 
              fn_expr = 0x4003}, sk_argument = 140723895980576}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x2740000000000, fn_oid = 16385, fn_nargs = 0, fn_strict = false, fn_retset = false, 
              fn_stats = 3 '\003', fn_extra = 0xfe60ace1d5d4c4c0, fn_mcxt = 0x743553ad9c00, fn_expr = 0x1d5d4c4d0}, sk_argument = 49346141662084}, {sk_flags = -707476144, sk_attno = 32764, sk_strategy = 0, sk_subtype = 10668938, sk_collation = 0, sk_func = {
              fn_addr = 0x0, fn_oid = 0, fn_nargs = -21279, fn_strict = 96, fn_retset = 254, fn_stats = 240 '\360', fn_extra = 0x83080001017b3bf0, fn_mcxt = 0x8340ebced5d4c564, fn_expr = 0x7ffcd5d4c510}, sk_argument = 10458414}, {sk_flags = 1574, sk_attno = 0, 
            sk_strategy = 0, sk_subtype = 3587491184, sk_collation = 32764, sk_func = {fn_addr = 0x9f98ef <CatalogCacheComputeHashValue+230>, fn_oid = 1574, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 224 '\340', fn_extra = 0x0, 
              fn_mcxt = 0x62600000014, fn_expr = 0x7ffcd5d4c5c0}, sk_argument = 5836469168}, {sk_flags = -707476112, sk_attno = 32764, sk_strategy = 0, sk_subtype = 10860349, sk_collation = 0, sk_func = {fn_addr = 0x74355be173e8, fn_oid = 25055152, fn_nargs = 0, 
              fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x9fbc7e <SearchCatCacheInternal+473>, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 1574, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 1, sk_func = {
              fn_addr = 0x180d680, fn_oid = 1541501928, fn_nargs = 29749, fn_strict = false, fn_retset = false, fn_stats = 240 '\360', fn_extra = 0x1d5d4c620, fn_mcxt = 0x7dd7cf <evaluate_function+130>, fn_expr = 0x7ffcd5d4c5f0}, sk_argument = 10860391}, {
            sk_flags = 1541501928, sk_attno = 29749, sk_strategy = 0, sk_subtype = 25055152, sk_collation = 0, sk_func = {fn_addr = 0x7ffcd5d4c620, fn_oid = 10469294, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 48 '0', fn_extra = 0x74355be173e8, 
              fn_mcxt = 0x30, fn_expr = 0x1870718}, sk_argument = 3587491392}, {sk_flags = 25626440, sk_attno = 0, sk_strategy = 0, sk_subtype = 3587491488, sk_collation = 32764, sk_func = {fn_addr = 0xa4c64d <AllocSetAlloc+1464>, fn_oid = 48, fn_nargs = 0, 
              fn_strict = false, fn_retset = false, fn_stats = 96 '`', fn_extra = 0x7ffcd5d4c750, fn_mcxt = 0x40, fn_expr = 0x1870700}, sk_argument = 12884901888}, {sk_flags = 24872288, sk_attno = 0, sk_strategy = 0, sk_subtype = 20, sk_collation = 1574, sk_func = {
              fn_addr = 0x7ffcd5d4da50, fn_oid = 6304, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 192 '\300', fn_extra = 0x186ffa0, fn_mcxt = 0x7ffcd5d4c6f0, fn_expr = 0xa565fc <MemoryContextAllocZeroAligned+237>}, sk_argument = 48}, {
            sk_flags = 24872288, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x1870748, fn_oid = 25626392, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 72 'H', fn_extra = 0x0, fn_mcxt = 0x0, 
              fn_expr = 0x7ffcd5d4ca70}, sk_argument = 8235463}, {sk_flags = -707469344, sk_attno = 32764, sk_strategy = 0, sk_subtype = 25625320, sk_collation = 0, sk_func = {fn_addr = 0x7ffcd5d4c784, fn_oid = 1283292160, fn_nargs = 29749, fn_strict = false, 
              fn_retset = false, fn_stats = 112 'p', fn_extra = 0x50e641 <_bt_check_natts+72>, fn_mcxt = 0x7ffcd5d4c760, fn_expr = 0x10089ff9a}, sk_argument = 25626336}, {sk_flags = 1541707856, sk_attno = 29749, sk_strategy = 0, sk_subtype = 3587491716, 
            sk_collation = 32764, sk_func = {fn_addr = 0x74354c7d8500, fn_oid = 1283300336, fn_nargs = 29749, fn_strict = false, fn_retset = false, fn_stats = 1 '\001', fn_extra = 0x7ffcd5d4c7d0, fn_mcxt = 0x5078f6 <_bt_compare+1486>, fn_expr = 0x74354c7d0000}, 
            sk_argument = 140723895980560}, {sk_flags = -707526655, sk_attno = 1, sk_strategy = 0, sk_subtype = 1541707856, sk_collation = 29749, sk_func = {fn_addr = 0x1d5d4c7d0, fn_oid = 33470, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 24 '\030', 
              fn_extra = 0x1870718, fn_mcxt = 0x0, fn_expr = 0x18702e8}, sk_argument = 140723895978016}, {sk_flags = 5301825, sk_attno = 0, sk_strategy = 0, sk_subtype = 1541707776, sk_collation = 29696, sk_func = {fn_addr = 0x0, fn_oid = 3587491968, fn_nargs = 32764, 
              fn_strict = false, fn_retset = false, fn_stats = 38 '&', fn_extra = 0x7ffcd5d4c8af, fn_mcxt = 0x8308000000000001, fn_expr = 0x7ffcd5d4c884}, sk_argument = 127772249970136}, {sk_flags = 1768, sk_attno = 0, sk_strategy = 0, sk_subtype = 25055184, 
            sk_collation = 16777216, sk_func = {fn_addr = 0x7ffcd5d4c860, fn_oid = 8846898, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 96 '`', fn_extra = 0xf9ed68 <PrivateRefCountArray+8>, fn_mcxt = 0x7ffcd5d4c884, fn_expr = 0x74354b9255d8}, 
            sk_argument = 140723895978144}, {sk_flags = 8856502, sk_attno = 0, sk_strategy = 0, sk_subtype = 24878680, sk_collation = 1, sk_func = {fn_addr = 0x74354b9255c0, fn_oid = 1, fn_nargs = 1, fn_strict = 8, fn_retset = 131, fn_stats = 228 '\344', 
              fn_extra = 0xf9ed68 <PrivateRefCountArray+8>, fn_mcxt = 0x6e800874beb, fn_expr = 0x7ffcd5d4c8c0}, sk_argument = 8865405}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 1267881408, sk_collation = 1768, sk_func = {fn_addr = 0x7ffcd5d4c8e0, 
              fn_oid = 5270210, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 136 '\210', fn_extra = 0x74355b30bb30 <main_arena+80>, fn_mcxt = 0x74355b30baf0 <main_arena+16>, fn_expr = 0x7ffcd5d4c920}, sk_argument = 18446603349813573345}, {
            sk_flags = 24878888, sk_attno = 0, sk_strategy = 0, sk_subtype = 1529905408, sk_collation = 29749, sk_func = {fn_addr = 0x74355af8bd2a <_IO_vfprintf_internal+1562>, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', 
              fn_extra = 0x349a0f66d5d4c9b0, fn_mcxt = 0x17d50a0, fn_expr = 0x0}, sk_argument = 11957847468975684096}, {sk_flags = -707474992, sk_attno = 30120, sk_strategy = 9841, sk_subtype = 107, sk_collation = 0, sk_func = {fn_addr = 0x74355b30bae0 <main_arena>, 
              fn_oid = 4680720, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 224 '\340', fn_extra = 0x74355b30bb38 <main_arena+88>, fn_mcxt = 0x0, fn_expr = 0x74355afc5b56 <_int_malloc+2310>}, sk_argument = 127772512008912}, {sk_flags = 1529920208, 
            sk_attno = 29749, sk_strategy = 0, sk_subtype = 8408, sk_collation = 0, sk_func = {fn_addr = 0x6b, fn_oid = 3587492352, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 208 '\320', fn_extra = 0xffff80032a2b3601, fn_mcxt = 0x0, 
              fn_expr = 0x8}, sk_argument = 131}}
        notnullkeys = {{sk_flags = 48, sk_attno = 48, sk_strategy = 0, sk_subtype = 3587487920, sk_collation = 32764, sk_func = {fn_addr = 0x7ffcd5d4b7f0, fn_oid = 3935926784, fn_nargs = -12566, fn_strict = 242, fn_retset = 165, fn_stats = 16 '\020', 
              fn_extra = 0x5952c8310, fn_mcxt = 0x595f78a10, fn_expr = 0x1}, sk_argument = 0}, {sk_flags = 29, sk_attno = 0, sk_strategy = 0, sk_subtype = 2578927120, sk_collation = 5, sk_func = {fn_addr = 0x59ad56390, fn_oid = 2610376720, fn_nargs = 5, 
              fn_strict = false, fn_retset = false, fn_stats = 144 '\220', fn_extra = 0x59d771210, fn_mcxt = 0x87885c <BasicOpenFilePerm+44>, fn_expr = 0x200000180}, sk_argument = 140723895983344}, {sk_flags = 5214162, sk_attno = 0, sk_strategy = 0, sk_subtype = 356, 
            sk_collation = 14, sk_func = {fn_addr = 0x2, fn_oid = 256, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 160 '\240', fn_extra = 0x87882e <BasicOpenFile+40>, fn_mcxt = 0x200000626, fn_expr = 0x7ffcd5d4dcf0}, sk_argument = 140723895984416}, {
            sk_flags = 5548301, sk_attno = 0, sk_strategy = 0, sk_subtype = 2863183120, sk_collation = 5, sk_func = {fn_addr = 0x74015be79330, fn_oid = 3587498323, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 29 '\035', fn_extra = 0x74355be5d000, 
              fn_mcxt = 0xa66000004eb, fn_expr = 0x7ffcd5d4bcc0}, sk_argument = 10645898}, {sk_flags = 1259, sk_attno = 0, sk_strategy = 0, sk_subtype = 2662, sk_collation = 0, sk_func = {fn_addr = 0x64000004eb, fn_oid = 3587491696, fn_nargs = 32764, fn_strict = false, 
              fn_retset = false, fn_stats = 112 'p', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x2000000000064}, sk_argument = 2662}, {sk_flags = 1259, sk_attno = 0, sk_strategy = 0, sk_subtype = 2662, sk_collation = 0, sk_func = {fn_addr = 0x7ffcd5d4b990, fn_oid = 7, 
              fn_nargs = -31186, fn_strict = 26, fn_retset = 62, fn_stats = 235 '\353', fn_extra = 0x7ffcd5d4bd40, fn_mcxt = 0xa2718a <FunctionCall2Coll+160>, fn_expr = 0x4eb}, sk_argument = 1260}, {sk_flags = 0, sk_attno = 100, sk_strategy = 0, sk_subtype = 25642800, 
            sk_collation = 0, sk_func = {fn_addr = 0x1874730, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 0 '\000', fn_extra = 0x2000000000064, fn_mcxt = 0x4ec, fn_expr = 0x4eb}, sk_argument = 140723895977840}, {sk_flags = 0, sk_attno = 0, 
            sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x2740000000064, fn_oid = 1259, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 235 '\353', fn_extra = 0x283f1472d5d4ba30, fn_mcxt = 0x743553ad9c00, 
              fn_expr = 0x7ffcd5d4ba30}, sk_argument = 22479867879551}, {sk_flags = -707478880, sk_attno = 32764, sk_strategy = 0, sk_subtype = 10668938, sk_collation = 0, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 5234, fn_strict = 63, fn_retset = 40, 
              fn_stats = 64 '@', fn_extra = 0x93940003017b3bf0, fn_mcxt = 0x7ffcd5d4bab4, fn_expr = 0x74354b92ab18}, sk_argument = 4294969405}, {sk_flags = 1262410628, sk_attno = 29749, sk_strategy = 0, sk_subtype = 3587488384, sk_collation = 32764, sk_func = {
              fn_addr = 0x89fe65 <pg_atomic_sub_fetch_u32_impl+32>, fn_oid = 3587488400, fn_nargs = 1, fn_strict = false, fn_retset = false, fn_stats = 132 '\204', fn_extra = 0x7ffcd5d4baa0, fn_mcxt = 0x8a00b5 <pg_atomic_sub_fetch_u32+115>, fn_expr = 0x1d5d4bad0}, 
            sk_argument = 127772244499332}, {sk_flags = -707478832, sk_attno = 32764, sk_strategy = 0, sk_subtype = 9052287, sk_collation = 0, sk_func = {fn_addr = 0x93940002d5d4bad0, fn_oid = 1262410624, fn_nargs = 29749, fn_strict = false, fn_retset = false, 
              fn_stats = 1 '\001', fn_extra = 0x2000000000b79a18, fn_mcxt = 0x7ffcd5d4bba0, fn_expr = 0x87138b <BufferAlloc+238>}, sk_argument = 127772244490624}, {sk_flags = -707478541, sk_attno = 32764, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {
              fn_addr = 0x1017e8c68, fn_oid = 0, fn_nargs = 32624, fn_strict = false, fn_retset = false, fn_stats = 48 '0', fn_extra = 0x0, fn_mcxt = 0x300000000, fn_expr = 0x7f7000000000}, sk_argument = 25476144}, {sk_flags = 40, sk_attno = 0, sk_strategy = 0, 
            sk_subtype = 25626208, sk_collation = 0, sk_func = {fn_addr = 0x67f, fn_oid = 25626248, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 192 '\300', fn_extra = 0xa4c64d <AllocSetAlloc+1464>, fn_mcxt = 0x28, fn_expr = 0x17b8560}, 
            sk_argument = 127772249991936}, {sk_flags = 64, sk_attno = 0, sk_strategy = 0, sk_subtype = 25626184, sk_collation = 0, sk_func = {fn_addr = 0x300a5b4ca, fn_oid = 24872288, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 104 'h', 
              fn_extra = 0x7ffcd5d4bca0, fn_mcxt = 0x1958, fn_expr = 0x0}, sk_argument = 25624480}, {sk_flags = -707478528, sk_attno = 32764, sk_strategy = 0, sk_subtype = 10840607, sk_collation = 0, sk_func = {fn_addr = 0x4df, fn_oid = 40, fn_nargs = 0, 
              fn_strict = false, fn_retset = false, fn_stats = 96 '`', fn_extra = 0x17b8560, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 140723895975776}, {sk_flags = 7592951, sk_attno = 0, sk_strategy = 0, sk_subtype = 3587488832, sk_collation = 32764, sk_func = {
              fn_addr = 0x7ffcd5d4dfe0, fn_oid = 8234160, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 64 '@', fn_extra = 0x2000000000000003, fn_mcxt = 0x2000000101e49850, fn_expr = 0x7ffcd5d4bc80}, sk_argument = 9049985}, {sk_flags = -707526656, 
            sk_attno = 1, sk_strategy = 0, sk_subtype = 1267910436, sk_collation = 536870914, sk_func = {fn_addr = 0x1870660, fn_oid = 25625408, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 192 '\300', fn_extra = 0x50e641 <_bt_check_natts+72>, 
              fn_mcxt = 0x7ffcd5d4bcb0, fn_expr = 0x7ffcd5d4bcd0}, sk_argument = 127772268174336}, {sk_flags = 16385, sk_attno = -31993, sk_strategy = 0, sk_subtype = 3587489920, sk_collation = 32764, sk_func = {fn_addr = 0xa2718a <FunctionCall2Coll+160>, 
              fn_oid = 16385, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 7 '\a', fn_extra = 0x4001, fn_mcxt = 0x7ffcd5d4cb30, fn_expr = 0x7ffcd5d4cb30}, sk_argument = 0}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, 
            sk_collation = 131072, sk_func = {fn_addr = 0x8307, fn_oid = 16385, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 127 '\177', fn_extra = 0x7ffcd5d4bd50, fn_mcxt = 0x74355be49b80, fn_expr = 0x400300004001}, sk_argument = 140723895976192}, {
            sk_flags = 10645898, sk_attno = 0, sk_strategy = 0, sk_subtype = 16385, sk_collation = 0, sk_func = {fn_addr = 0x4003, fn_oid = 3587489232, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 48 '0', fn_extra = 0x1874730, fn_mcxt = 0x7ffcd5d4bda0, 
              fn_expr = 0x0}, sk_argument = 11433202943211}, {sk_flags = -707477168, sk_attno = 32764, sk_strategy = 0, sk_subtype = 10645898, sk_collation = 0, sk_func = {fn_addr = 0x4eb, fn_oid = 2662, fn_nargs = 0, fn_strict = false, fn_retset = false, 
              fn_stats = 235 '\353', fn_extra = 0x7ffcd5d4cc00, fn_mcxt = 0x7ffcd5d4cc00, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 100, sk_attno = 0, sk_strategy = 2, sk_subtype = 2662, sk_collation = 0, sk_func = {fn_addr = 0x4eb, fn_oid = 2662, fn_nargs = 0, 
              fn_strict = false, fn_retset = false, fn_stats = 32 ' ', fn_extra = 0x5e6b4d100000000, fn_mcxt = 0x4ec000004eb, fn_expr = 0x7ffcd5d4c1d0}, sk_argument = 10645898}, {sk_flags = 1259, sk_attno = 0, sk_strategy = 0, sk_subtype = 1260, sk_collation = 0, 
            sk_func = {fn_addr = 0x6400000000, fn_oid = 24878696, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 104 'h', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x2000000000064}, sk_argument = 1260}, {sk_flags = 1259, sk_attno = 0, sk_strategy = 0, 
            sk_subtype = 3587492864, sk_collation = 32764, sk_func = {fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 100 'd', fn_extra = 0x4eb, fn_mcxt = 0x7ffcd5d4bec0, fn_expr = 0x5383b1bd5d4bec0}, 
            sk_argument = 11549167061607}, {sk_flags = -707476880, sk_attno = 32764, sk_strategy = 0, sk_subtype = 10645898, sk_collation = 0, sk_func = {fn_addr = 0xa67, fn_oid = 2689, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 103 'g', 
              fn_extra = 0x7ffcd5d4cd20, fn_mcxt = 0x7ffcd5d4cd20, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = 100, sk_attno = 0, sk_strategy = 2, sk_subtype = 2689, sk_collation = 0, sk_func = {fn_addr = 0xa67, fn_oid = 2601, fn_nargs = 0, fn_strict = false, 
              fn_retset = false, fn_stats = 64 '@', fn_extra = 0x1d5d4bf20, fn_mcxt = 0xa6800000a67, fn_expr = 0x7ffcd5d4c2f0}, sk_argument = 10645898}, {sk_flags = 2663, sk_attno = 0, sk_strategy = 0, sk_subtype = 2664, sk_collation = 0, sk_func = {
              fn_addr = 0x64d5d4bf60, fn_oid = 24879464, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 104 'h', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x2000000000064}, sk_argument = 140723895976672}, {sk_flags = 8243445, sk_attno = 0, 
            sk_strategy = 0, sk_subtype = 3587497952, sk_collation = 32764, sk_func = {fn_addr = 0x1870340, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 100 'd', fn_extra = 0xa66, fn_mcxt = 0xa67, fn_expr = 0xce2737d7d5d4bfc0}, 
            sk_argument = 127772385975296}, {sk_flags = -707477552, sk_attno = 1, sk_strategy = 0, sk_subtype = 3587489792, sk_collation = 32764, sk_func = {fn_addr = 0x7ffcd5d4c050, fn_oid = 1259, fn_nargs = 2662, fn_strict = false, fn_retset = false, 
              fn_stats = 176 '\260', fn_extra = 0xa2718a <FunctionCall2Coll+160>, fn_mcxt = 0x4eb, fn_expr = 0xa66}, sk_argument = 429496730859}, {sk_flags = -707473824, sk_attno = 32764, sk_strategy = 0, sk_subtype = 3587493472, sk_collation = 32764, sk_func = {
              fn_addr = 0x0, fn_oid = 0, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 100 'd', fn_extra = 0xa66, fn_mcxt = 0x4eb, fn_expr = 0xa66}, sk_argument = 140723895976064}, {sk_flags = -707477376, sk_attno = 20754, sk_strategy = 38758, 
            sk_subtype = 1259, sk_collation = 1260, sk_func = {fn_addr = 0x7ffcd5d4c430, fn_oid = 10645898, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 235 '\353', fn_extra = 0x4ec, fn_mcxt = 0x6400000000, fn_expr = 0x17b9e68}, 
            sk_argument = 24878696}, {sk_flags = 0, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x2000000000064, fn_oid = 1260, fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 235 '\353', 
              fn_extra = 0x7ffcd5d4ce60, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 690493302243428}}
        keysCount = 1
        i = 1
        status = true
        strat_total = 3
        currItem = 0x7ffcd5d4cb20
        blkno = 29749
        __func__ = "_bt_first"
#12 0x00000000005047ba in btgettuple (scan=0x1874100, dir=ForwardScanDirection) at nbtree.c:245
        so = 0x187a030
        res = false
#13 0x00000000004f810e in index_getnext_tid (scan=0x1874100, direction=ForwardScanDirection) at indexam.c:541
        found = false
        __func__ = "index_getnext_tid"
#14 0x00000000004f854f in index_getnext (scan=0x1874100, direction=ForwardScanDirection) at indexam.c:679
        heapTuple = 0x5d5d4cc10
        tid = 0x7ffcd5d4cc60
#15 0x00000000004f6b79 in systable_getnext (sysscan=0x1874218) at genam.c:411
        htup = 0x74355be49850
        __func__ = "systable_getnext"
#16 0x0000000000a08480 in ScanPgRelation (targetRelId=16391, indexOK=true, force_non_historic=false) at relcache.c:358
        pg_class_tuple = 0x17e0280
        pg_class_desc = 0x74355be042b0
        pg_class_scan = 0x1874218
        key = {{sk_flags = 0, sk_attno = 1, sk_strategy = 3, sk_subtype = 0, sk_collation = 100, sk_func = {fn_addr = 0x97498b <oideq>, fn_oid = 184, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, fn_mcxt = 0x1873fc0, 
              fn_expr = 0x0}, sk_argument = 16391}}
        snapshot = 0xf79ba0 <CatalogSnapshotData>
        __func__ = "ScanPgRelation"
#17 0x0000000000a0be35 in RelationReloadIndexInfo (relation=0x74355be19020) at relcache.c:2086
        indexOK = true
        pg_class_tuple = 0x74355be19030
        relp = 0x184b140
        __func__ = "RelationReloadIndexInfo"
#18 0x0000000000a0c5f1 in RelationClearRelation (relation=0x74355be19020, rebuild=true) at relcache.c:2361
        __func__ = "RelationClearRelation"
#19 0x0000000000a0cc03 in RelationFlushRelation (relation=0x74355be19020) at relcache.c:2584
        rebuild = true
#20 0x0000000000a0cd17 in RelationCacheInvalidateEntry (relationId=16391) at relcache.c:2636
        relation = 0x74355be19020
#21 0x00000000009fe678 in LocalExecuteInvalidationMessage (msg=0x7ffcd5d4d050) at inval.c:587
        i = 0
        __func__ = "LocalExecuteInvalidationMessage"
#22 0x000000000088ece8 in ReceiveSharedInvalidMessages (invalFunction=0x9fe571 <LocalExecuteInvalidationMessage>, resetFunction=0x9fe7cd <InvalidateSystemCaches>) at sinval.c:91
        msg = {id = -2 '\376', cc = {id = -2 '\376', dbId = 16384, hashValue = 16391}, cat = {id = -2 '\376', dbId = 16384, catId = 16391}, rc = {id = -2 '\376', dbId = 16384, relId = 16391}, sm = {id = -2 '\376', backend_hi = -28 '\344', backend_lo = 159, rnode = {
              spcNode = 16384, dbNode = 16391, relNode = 0}}, rm = {id = -2 '\376', dbId = 16384}, sn = {id = -2 '\376', dbId = 16384, relId = 16391}}
        messages = {{id = 57 '9', cc = {id = 57 '9', dbId = 16384, hashValue = 2374461275}, cat = {id = 57 '9', dbId = 16384, catId = 2374461275}, rc = {id = 57 '9', dbId = 16384, relId = 2374461275}, sm = {id = 57 '9', backend_hi = 12 '\f', backend_lo = 23522, rnode = {
                spcNode = 16384, dbNode = 2374461275, relNode = 0}}, rm = {id = 57 '9', dbId = 16384}, sn = {id = 57 '9', dbId = 16384, relId = 2374461275}}, {id = 57 '9', cc = {id = 57 '9', dbId = 16384, hashValue = 929879610}, cat = {id = 57 '9', dbId = 16384, 
              catId = 929879610}, rc = {id = 57 '9', dbId = 16384, relId = 929879610}, sm = {id = 57 '9', backend_hi = 12 '\f', backend_lo = 23522, rnode = {spcNode = 16384, dbNode = 929879610, relNode = 0}}, rm = {id = 57 '9', dbId = 16384}, sn = {id = 57 '9', 
              dbId = 16384, relId = 929879610}}, {id = 57 '9', cc = {id = 57 '9', dbId = 16384, hashValue = 857470863}, cat = {id = 57 '9', dbId = 16384, catId = 857470863}, rc = {id = 57 '9', dbId = 16384, relId = 857470863}, sm = {id = 57 '9', backend_hi = 12 '\f', 
              backend_lo = 23522, rnode = {spcNode = 16384, dbNode = 857470863, relNode = 0}}, rm = {id = 57 '9', dbId = 16384}, sn = {id = 57 '9', dbId = 16384, relId = 857470863}}, {id = 50 '2', cc = {id = 50 '2', dbId = 16384, hashValue = 3283079178}, cat = {
              id = 50 '2', dbId = 16384, catId = 3283079178}, rc = {id = 50 '2', dbId = 16384, relId = 3283079178}, sm = {id = 50 '2', backend_hi = -84 '\254', backend_lo = 23524, rnode = {spcNode = 16384, dbNode = 3283079178, relNode = 0}}, rm = {id = 50 '2', 
              dbId = 16384}, sn = {id = 50 '2', dbId = 16384, relId = 3283079178}}, {id = 49 '1', cc = {id = 49 '1', dbId = 16384, hashValue = 830642416}, cat = {id = 49 '1', dbId = 16384, catId = 830642416}, rc = {id = 49 '1', dbId = 16384, relId = 830642416}, sm = {
              id = 49 '1', backend_hi = -111 '\221', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 830642416, relNode = 0}}, rm = {id = 49 '1', dbId = 16384}, sn = {id = 49 '1', dbId = 16384, relId = 830642416}}, {id = 50 '2', cc = {id = 50 '2', dbId = 16384, 
              hashValue = 1516896154}, cat = {id = 50 '2', dbId = 16384, catId = 1516896154}, rc = {id = 50 '2', dbId = 16384, relId = 1516896154}, sm = {id = 50 '2', backend_hi = -84 '\254', backend_lo = 23524, rnode = {spcNode = 16384, dbNode = 1516896154, 
                relNode = 0}}, rm = {id = 50 '2', dbId = 16384}, sn = {id = 50 '2', dbId = 16384, relId = 1516896154}}, {id = 49 '1', cc = {id = 49 '1', dbId = 16384, hashValue = 2871742505}, cat = {id = 49 '1', dbId = 16384, catId = 2871742505}, rc = {id = 49 '1', 
              dbId = 16384, relId = 2871742505}, sm = {id = 49 '1', backend_hi = -111 '\221', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2871742505, relNode = 0}}, rm = {id = 49 '1', dbId = 16384}, sn = {id = 49 '1', dbId = 16384, relId = 2871742505}}, {
            id = -2 '\376', cc = {id = -2 '\376', dbId = 16384, hashValue = 16387}, cat = {id = -2 '\376', dbId = 16384, catId = 16387}, rc = {id = -2 '\376', dbId = 16384, relId = 16387}, sm = {id = -2 '\376', backend_hi = -28 '\344', backend_lo = 159, rnode = {
                spcNode = 16384, dbNode = 16387, relNode = 0}}, rm = {id = -2 '\376', dbId = 16384}, sn = {id = -2 '\376', dbId = 16384, relId = 16387}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 16384, hashValue = 16391}, cat = {id = -2 '\376', dbId = 16384, 
              catId = 16391}, rc = {id = -2 '\376', dbId = 16384, relId = 16391}, sm = {id = -2 '\376', backend_hi = -28 '\344', backend_lo = 159, rnode = {spcNode = 16384, dbNode = 16391, relNode = 0}}, rm = {id = -2 '\376', dbId = 16384}, sn = {id = -2 '\376', 
              dbId = 16384, relId = 16391}}, {id = -4 '\374', cc = {id = -4 '\374', dbId = 16384, hashValue = 1408383728}, cat = {id = -4 '\374', dbId = 16384, catId = 1408383728}, rc = {id = -4 '\374', dbId = 16384, relId = 1408383728}, sm = {id = -4 '\374', 
              backend_hi = -126 '\202', backend_lo = 379, rnode = {spcNode = 16384, dbNode = 1408383728, relNode = 0}}, rm = {id = -4 '\374', dbId = 16384}, sn = {id = -4 '\374', dbId = 16384, relId = 1408383728}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, 
              hashValue = 1800290805}, cat = {id = 7 '\a', dbId = 16384, catId = 1800290805}, rc = {id = 7 '\a', dbId = 16384, relId = 1800290805}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1800290805, 
                relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 1800290805}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 3252869970}, cat = {id = 6 '\006', dbId = 16384, catId = 3252869970}, rc = {
              id = 6 '\006', dbId = 16384, relId = 3252869970}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3252869970, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, 
              relId = 3252869970}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 4004828559}, cat = {id = 7 '\a', dbId = 16384, catId = 4004828559}, rc = {id = 7 '\a', dbId = 16384, relId = 4004828559}, sm = {id = 7 '\a', backend_hi = -57 '\307', 
              backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 4004828559, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 4004828559}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 2757724078}, cat = {
              id = 6 '\006', dbId = 16384, catId = 2757724078}, rc = {id = 6 '\006', dbId = 16384, relId = 2757724078}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2757724078, relNode = 0}}, rm = {id = 6 '\006', 
              dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 2757724078}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 3337069152}, cat = {id = 7 '\a', dbId = 16384, catId = 3337069152}, rc = {id = 7 '\a', dbId = 16384, relId = 3337069152}, 
            sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3337069152, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 3337069152}}, {id = 6 '\006', cc = {id = 6 '\006', 
              dbId = 16384, hashValue = 1635591721}, cat = {id = 6 '\006', dbId = 16384, catId = 1635591721}, rc = {id = 6 '\006', dbId = 16384, relId = 1635591721}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, 
                dbNode = 1635591721, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 1635591721}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 4114039689}, cat = {id = 7 '\a', dbId = 16384, 
              catId = 4114039689}, rc = {id = 7 '\a', dbId = 16384, relId = 4114039689}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 4114039689, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', 
              dbId = 16384, relId = 4114039689}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 3135565283}, cat = {id = 6 '\006', dbId = 16384, catId = 3135565283}, rc = {id = 6 '\006', dbId = 16384, relId = 3135565283}, sm = {id = 6 '\006', 
              backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3135565283, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 3135565283}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, 
              hashValue = 2778276003}, cat = {id = 7 '\a', dbId = 16384, catId = 2778276003}, rc = {id = 7 '\a', dbId = 16384, relId = 2778276003}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2778276003, 
                relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 2778276003}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 76814840}, cat = {id = 6 '\006', dbId = 16384, catId = 76814840}, rc = {id = 6 '\006', 
              dbId = 16384, relId = 76814840}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 76814840, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 76814840}}, {
            id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 1418892496}, cat = {id = 7 '\a', dbId = 16384, catId = 1418892496}, rc = {id = 7 '\a', dbId = 16384, relId = 1418892496}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {
                spcNode = 16384, dbNode = 1418892496, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 1418892496}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 1507930434}, cat = {id = 6 '\006', dbId = 16384, 
              catId = 1507930434}, rc = {id = 6 '\006', dbId = 16384, relId = 1507930434}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1507930434, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {
              id = 6 '\006', dbId = 16384, relId = 1507930434}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 1796828489}, cat = {id = 7 '\a', dbId = 16384, catId = 1796828489}, rc = {id = 7 '\a', dbId = 16384, relId = 1796828489}, sm = {id = 7 '\a', 
              backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1796828489, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 1796828489}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, 
              hashValue = 162705678}, cat = {id = 6 '\006', dbId = 16384, catId = 162705678}, rc = {id = 6 '\006', dbId = 16384, relId = 162705678}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 162705678, 
                relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 162705678}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 2664708548}, cat = {id = 7 '\a', dbId = 16384, catId = 2664708548}, rc = {id = 7 '\a', 
              dbId = 16384, relId = 2664708548}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2664708548, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 2664708548}}, {
            id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 349610078}, cat = {id = 6 '\006', dbId = 16384, catId = 349610078}, rc = {id = 6 '\006', dbId = 16384, relId = 349610078}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, 
              rnode = {spcNode = 16384, dbNode = 349610078, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 349610078}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 1243203274}, cat = {id = 7 '\a', 
              dbId = 16384, catId = 1243203274}, rc = {id = 7 '\a', dbId = 16384, relId = 1243203274}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1243203274, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {
              id = 7 '\a', dbId = 16384, relId = 1243203274}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 334700480}, cat = {id = 6 '\006', dbId = 16384, catId = 334700480}, rc = {id = 6 '\006', dbId = 16384, relId = 334700480}, sm = {id = 6 '\006', 
              backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 334700480, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 334700480}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, 
              hashValue = 3206530557}, cat = {id = 7 '\a', dbId = 16384, catId = 3206530557}, rc = {id = 7 '\a', dbId = 16384, relId = 3206530557}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3206530557, 
                relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 3206530557}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 137702649}, cat = {id = 6 '\006', dbId = 16384, catId = 137702649}, rc = {
              id = 6 '\006', dbId = 16384, relId = 137702649}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 137702649, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, 
              relId = 137702649}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 88338638}, cat = {id = 7 '\a', dbId = 16384, catId = 88338638}, rc = {id = 7 '\a', dbId = 16384, relId = 88338638}, sm = {id = 7 '\a', backend_hi = -57 '\307', 
              backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 88338638, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 88338638}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 3664570356}, cat = {
              id = 6 '\006', dbId = 16384, catId = 3664570356}, rc = {id = 6 '\006', dbId = 16384, relId = 3664570356}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3664570356, relNode = 0}}, rm = {id = 6 '\006', 
              dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 3664570356}}}
        nextmsg = 9
        nummsgs = 32
        __func__ = "ReceiveSharedInvalidMessages"
#23 0x00000000009fe897 in AcceptInvalidationMessages () at inval.c:681
No locals.
#24 0x0000000000892cab in LockRelationOid (relid=2662, lockmode=1) at lmgr.c:125
        tag = {locktag_field1 = 16384, locktag_field2 = 2662, locktag_field3 = 0, locktag_field4 = 0, locktag_type = 0 '\000', locktag_lockmethodid = 1 '\001'}
        res = LOCKACQUIRE_OK
#25 0x00000000004d87a4 in relation_open (relationId=2662, lockmode=1) at heapam.c:1132
        r = 0x7429c2 <list_member_oid+84>
        __func__ = "relation_open"
#26 0x00000000004f7245 in index_open (relationId=2662, lockmode=1) at indexam.c:154
        r = 0x579c8b <ReindexIsProcessingIndex+42>
        __func__ = "index_open"
#27 0x00000000004f6943 in systable_beginscan (heapRelation=0x74355be042b0, indexId=2662, indexOK=true, snapshot=0xf79ba0 <CatalogSnapshotData>, nkeys=1, key=0x7ffcd5d4d1b0) at genam.c:329
        sysscan = 0xa726c9 <GetCatalogSnapshot+39>
        irel = 0x4eb00000000
        __func__ = "systable_beginscan"
#28 0x0000000000a08470 in ScanPgRelation (targetRelId=16387, indexOK=true, force_non_historic=false) at relcache.c:353
        pg_class_tuple = 0x0
        pg_class_desc = 0x74355be042b0
        pg_class_scan = 0x184a6d8
        key = {{sk_flags = 0, sk_attno = -2, sk_strategy = 3, sk_subtype = 0, sk_collation = 100, sk_func = {fn_addr = 0x97498b <oideq>, fn_oid = 184, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, fn_mcxt = 0x1873fc0, 
              fn_expr = 0x0}, sk_argument = 16387}}
        snapshot = 0xf79ba0 <CatalogSnapshotData>
        __func__ = "ScanPgRelation"
#29 0x0000000000a09d65 in RelationBuildDesc (targetRelId=16387, insertIt=false) at relcache.c:1082
        relation = 0x7ffcd5d4d778
        relid = 29749
        pg_class_tuple = 0xf7a2a0 <TopTransactionStateData>
        relp = 0x184b1b0
        __func__ = "RelationBuildDesc"
#30 0x0000000000a0c6c1 in RelationClearRelation (relation=0x74355be13980, rebuild=true) at relcache.c:2446
        save_relid = 16387
        keep_tupdesc = false
        keep_partkey = false
        newrel = 0x4
        keep_rules = false
        keep_policies = false
        keep_partdesc = true
        __func__ = "RelationClearRelation"
#31 0x0000000000a0cc03 in RelationFlushRelation (relation=0x74355be13980) at relcache.c:2584
        rebuild = true
#32 0x0000000000a0cd17 in RelationCacheInvalidateEntry (relationId=16387) at relcache.c:2636
        relation = 0x74355be13980
#33 0x00000000009fe678 in LocalExecuteInvalidationMessage (msg=0x7ffcd5d4d5a0) at inval.c:587
        i = 32
        __func__ = "LocalExecuteInvalidationMessage"
#34 0x000000000088edc1 in ReceiveSharedInvalidMessages (invalFunction=0x9fe571 <LocalExecuteInvalidationMessage>, resetFunction=0x9fe7cd <InvalidateSystemCaches>) at sinval.c:121
        msg = {id = -2 '\376', cc = {id = -2 '\376', dbId = 16384, hashValue = 16387}, cat = {id = -2 '\376', dbId = 16384, catId = 16387}, rc = {id = -2 '\376', dbId = 16384, relId = 16387}, sm = {id = -2 '\376', backend_hi = -28 '\344', backend_lo = 159, rnode = {
              spcNode = 16384, dbNode = 16387, relNode = 0}}, rm = {id = -2 '\376', dbId = 16384}, sn = {id = -2 '\376', dbId = 16384, relId = 16387}}
        getResult = 32
        messages = {{id = 57 '9', cc = {id = 57 '9', dbId = 16384, hashValue = 2374461275}, cat = {id = 57 '9', dbId = 16384, catId = 2374461275}, rc = {id = 57 '9', dbId = 16384, relId = 2374461275}, sm = {id = 57 '9', backend_hi = 12 '\f', backend_lo = 23522, rnode = {
                spcNode = 16384, dbNode = 2374461275, relNode = 0}}, rm = {id = 57 '9', dbId = 16384}, sn = {id = 57 '9', dbId = 16384, relId = 2374461275}}, {id = 57 '9', cc = {id = 57 '9', dbId = 16384, hashValue = 929879610}, cat = {id = 57 '9', dbId = 16384, 
              catId = 929879610}, rc = {id = 57 '9', dbId = 16384, relId = 929879610}, sm = {id = 57 '9', backend_hi = 12 '\f', backend_lo = 23522, rnode = {spcNode = 16384, dbNode = 929879610, relNode = 0}}, rm = {id = 57 '9', dbId = 16384}, sn = {id = 57 '9', 
              dbId = 16384, relId = 929879610}}, {id = 57 '9', cc = {id = 57 '9', dbId = 16384, hashValue = 857470863}, cat = {id = 57 '9', dbId = 16384, catId = 857470863}, rc = {id = 57 '9', dbId = 16384, relId = 857470863}, sm = {id = 57 '9', backend_hi = 12 '\f', 
              backend_lo = 23522, rnode = {spcNode = 16384, dbNode = 857470863, relNode = 0}}, rm = {id = 57 '9', dbId = 16384}, sn = {id = 57 '9', dbId = 16384, relId = 857470863}}, {id = 50 '2', cc = {id = 50 '2', dbId = 16384, hashValue = 3283079178}, cat = {
              id = 50 '2', dbId = 16384, catId = 3283079178}, rc = {id = 50 '2', dbId = 16384, relId = 3283079178}, sm = {id = 50 '2', backend_hi = -84 '\254', backend_lo = 23524, rnode = {spcNode = 16384, dbNode = 3283079178, relNode = 0}}, rm = {id = 50 '2', 
              dbId = 16384}, sn = {id = 50 '2', dbId = 16384, relId = 3283079178}}, {id = 49 '1', cc = {id = 49 '1', dbId = 16384, hashValue = 830642416}, cat = {id = 49 '1', dbId = 16384, catId = 830642416}, rc = {id = 49 '1', dbId = 16384, relId = 830642416}, sm = {
              id = 49 '1', backend_hi = -111 '\221', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 830642416, relNode = 0}}, rm = {id = 49 '1', dbId = 16384}, sn = {id = 49 '1', dbId = 16384, relId = 830642416}}, {id = 50 '2', cc = {id = 50 '2', dbId = 16384, 
              hashValue = 1516896154}, cat = {id = 50 '2', dbId = 16384, catId = 1516896154}, rc = {id = 50 '2', dbId = 16384, relId = 1516896154}, sm = {id = 50 '2', backend_hi = -84 '\254', backend_lo = 23524, rnode = {spcNode = 16384, dbNode = 1516896154, 
                relNode = 0}}, rm = {id = 50 '2', dbId = 16384}, sn = {id = 50 '2', dbId = 16384, relId = 1516896154}}, {id = 49 '1', cc = {id = 49 '1', dbId = 16384, hashValue = 2871742505}, cat = {id = 49 '1', dbId = 16384, catId = 2871742505}, rc = {id = 49 '1', 
              dbId = 16384, relId = 2871742505}, sm = {id = 49 '1', backend_hi = -111 '\221', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2871742505, relNode = 0}}, rm = {id = 49 '1', dbId = 16384}, sn = {id = 49 '1', dbId = 16384, relId = 2871742505}}, {
            id = -2 '\376', cc = {id = -2 '\376', dbId = 16384, hashValue = 16387}, cat = {id = -2 '\376', dbId = 16384, catId = 16387}, rc = {id = -2 '\376', dbId = 16384, relId = 16387}, sm = {id = -2 '\376', backend_hi = -28 '\344', backend_lo = 159, rnode = {
                spcNode = 16384, dbNode = 16387, relNode = 0}}, rm = {id = -2 '\376', dbId = 16384}, sn = {id = -2 '\376', dbId = 16384, relId = 16387}}, {id = -2 '\376', cc = {id = -2 '\376', dbId = 16384, hashValue = 16391}, cat = {id = -2 '\376', dbId = 16384, 
              catId = 16391}, rc = {id = -2 '\376', dbId = 16384, relId = 16391}, sm = {id = -2 '\376', backend_hi = -28 '\344', backend_lo = 159, rnode = {spcNode = 16384, dbNode = 16391, relNode = 0}}, rm = {id = -2 '\376', dbId = 16384}, sn = {id = -2 '\376', 
              dbId = 16384, relId = 16391}}, {id = -4 '\374', cc = {id = -4 '\374', dbId = 16384, hashValue = 1408383728}, cat = {id = -4 '\374', dbId = 16384, catId = 1408383728}, rc = {id = -4 '\374', dbId = 16384, relId = 1408383728}, sm = {id = -4 '\374', 
              backend_hi = -126 '\202', backend_lo = 379, rnode = {spcNode = 16384, dbNode = 1408383728, relNode = 0}}, rm = {id = -4 '\374', dbId = 16384}, sn = {id = -4 '\374', dbId = 16384, relId = 1408383728}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, 
              hashValue = 1800290805}, cat = {id = 7 '\a', dbId = 16384, catId = 1800290805}, rc = {id = 7 '\a', dbId = 16384, relId = 1800290805}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1800290805, 
                relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 1800290805}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 3252869970}, cat = {id = 6 '\006', dbId = 16384, catId = 3252869970}, rc = {
              id = 6 '\006', dbId = 16384, relId = 3252869970}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3252869970, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, 
              relId = 3252869970}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 4004828559}, cat = {id = 7 '\a', dbId = 16384, catId = 4004828559}, rc = {id = 7 '\a', dbId = 16384, relId = 4004828559}, sm = {id = 7 '\a', backend_hi = -57 '\307', 
              backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 4004828559, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 4004828559}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 2757724078}, cat = {
              id = 6 '\006', dbId = 16384, catId = 2757724078}, rc = {id = 6 '\006', dbId = 16384, relId = 2757724078}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2757724078, relNode = 0}}, rm = {id = 6 '\006', 
              dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 2757724078}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 3337069152}, cat = {id = 7 '\a', dbId = 16384, catId = 3337069152}, rc = {id = 7 '\a', dbId = 16384, relId = 3337069152}, 
            sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3337069152, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 3337069152}}, {id = 6 '\006', cc = {id = 6 '\006', 
              dbId = 16384, hashValue = 1635591721}, cat = {id = 6 '\006', dbId = 16384, catId = 1635591721}, rc = {id = 6 '\006', dbId = 16384, relId = 1635591721}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, 
                dbNode = 1635591721, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 1635591721}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 4114039689}, cat = {id = 7 '\a', dbId = 16384, 
              catId = 4114039689}, rc = {id = 7 '\a', dbId = 16384, relId = 4114039689}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 4114039689, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', 
              dbId = 16384, relId = 4114039689}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 3135565283}, cat = {id = 6 '\006', dbId = 16384, catId = 3135565283}, rc = {id = 6 '\006', dbId = 16384, relId = 3135565283}, sm = {id = 6 '\006', 
              backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3135565283, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 3135565283}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, 
              hashValue = 2778276003}, cat = {id = 7 '\a', dbId = 16384, catId = 2778276003}, rc = {id = 7 '\a', dbId = 16384, relId = 2778276003}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2778276003, 
                relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 2778276003}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 76814840}, cat = {id = 6 '\006', dbId = 16384, catId = 76814840}, rc = {id = 6 '\006', 
              dbId = 16384, relId = 76814840}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 76814840, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 76814840}}, {
            id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 1418892496}, cat = {id = 7 '\a', dbId = 16384, catId = 1418892496}, rc = {id = 7 '\a', dbId = 16384, relId = 1418892496}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {
                spcNode = 16384, dbNode = 1418892496, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 1418892496}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 1507930434}, cat = {id = 6 '\006', dbId = 16384, 
              catId = 1507930434}, rc = {id = 6 '\006', dbId = 16384, relId = 1507930434}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1507930434, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {
              id = 6 '\006', dbId = 16384, relId = 1507930434}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 1796828489}, cat = {id = 7 '\a', dbId = 16384, catId = 1796828489}, rc = {id = 7 '\a', dbId = 16384, relId = 1796828489}, sm = {id = 7 '\a', 
              backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1796828489, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 1796828489}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, 
              hashValue = 162705678}, cat = {id = 6 '\006', dbId = 16384, catId = 162705678}, rc = {id = 6 '\006', dbId = 16384, relId = 162705678}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 162705678, 
                relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 162705678}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 2664708548}, cat = {id = 7 '\a', dbId = 16384, catId = 2664708548}, rc = {id = 7 '\a', 
              dbId = 16384, relId = 2664708548}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 2664708548, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 2664708548}}, {
            id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 349610078}, cat = {id = 6 '\006', dbId = 16384, catId = 349610078}, rc = {id = 6 '\006', dbId = 16384, relId = 349610078}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, 
              rnode = {spcNode = 16384, dbNode = 349610078, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 349610078}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 1243203274}, cat = {id = 7 '\a', 
              dbId = 16384, catId = 1243203274}, rc = {id = 7 '\a', dbId = 16384, relId = 1243203274}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 1243203274, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {
              id = 7 '\a', dbId = 16384, relId = 1243203274}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 334700480}, cat = {id = 6 '\006', dbId = 16384, catId = 334700480}, rc = {id = 6 '\006', dbId = 16384, relId = 334700480}, sm = {id = 6 '\006', 
              backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 334700480, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 334700480}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, 
              hashValue = 3206530557}, cat = {id = 7 '\a', dbId = 16384, catId = 3206530557}, rc = {id = 7 '\a', dbId = 16384, relId = 3206530557}, sm = {id = 7 '\a', backend_hi = -57 '\307', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3206530557, 
                relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 3206530557}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 137702649}, cat = {id = 6 '\006', dbId = 16384, catId = 137702649}, rc = {
              id = 6 '\006', dbId = 16384, relId = 137702649}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 137702649, relNode = 0}}, rm = {id = 6 '\006', dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, 
              relId = 137702649}}, {id = 7 '\a', cc = {id = 7 '\a', dbId = 16384, hashValue = 88338638}, cat = {id = 7 '\a', dbId = 16384, catId = 88338638}, rc = {id = 7 '\a', dbId = 16384, relId = 88338638}, sm = {id = 7 '\a', backend_hi = -57 '\307', 
              backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 88338638, relNode = 0}}, rm = {id = 7 '\a', dbId = 16384}, sn = {id = 7 '\a', dbId = 16384, relId = 88338638}}, {id = 6 '\006', cc = {id = 6 '\006', dbId = 16384, hashValue = 3664570356}, cat = {
              id = 6 '\006', dbId = 16384, catId = 3664570356}, rc = {id = 6 '\006', dbId = 16384, relId = 3664570356}, sm = {id = 6 '\006', backend_hi = -41 '\327', backend_lo = 23521, rnode = {spcNode = 16384, dbNode = 3664570356, relNode = 0}}, rm = {id = 6 '\006', 
              dbId = 16384}, sn = {id = 6 '\006', dbId = 16384, relId = 3664570356}}}
        nextmsg = 9
        nummsgs = 32
        __func__ = "ReceiveSharedInvalidMessages"
#35 0x00000000009fe897 in AcceptInvalidationMessages () at inval.c:681
No locals.
#36 0x0000000000892cab in LockRelationOid (relid=1259, lockmode=1) at lmgr.c:125
        tag = {locktag_field1 = 16384, locktag_field2 = 1259, locktag_field3 = 0, locktag_field4 = 0, locktag_type = 0 '\000', locktag_lockmethodid = 1 '\001'}
        res = LOCKACQUIRE_OK
#37 0x00000000004d87a4 in relation_open (relationId=1259, lockmode=1) at heapam.c:1132
        r = 0x18719e8
        __func__ = "relation_open"
#38 0x00000000004d8a51 in heap_open (relationId=1259, lockmode=1) at heapam.c:1298
        r = 0xa4c64d <AllocSetAlloc+1464>
        __func__ = "heap_open"
#39 0x00000000009fbdc5 in SearchCatCacheMiss (cache=0x1810c00, nkeys=1, hashValue=183222592, hashIndex=64, v1=16385, v2=0, v3=0, v4=0) at catcache.c:1375
        cur_skey = {{sk_flags = 0, sk_attno = -2, sk_strategy = 3, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x97498b <oideq>, fn_oid = 184, fn_nargs = 2, fn_strict = true, fn_retset = false, fn_stats = 2 '\002', fn_extra = 0x0, fn_mcxt = 0x17fad90, 
              fn_expr = 0x0}, sk_argument = 16385}, {sk_flags = 10669876, sk_attno = 0, sk_strategy = 0, sk_subtype = 3587496071, sk_collation = 32764, sk_func = {fn_addr = 0x7a514b4b00000001, fn_oid = 3587495948, fn_nargs = 32764, fn_strict = false, fn_retset = false, 
              fn_stats = 168 '\250', fn_extra = 0x7ffcd5d4d780, fn_mcxt = 0x4, fn_expr = 0x4767f0 <memcmp@plt>}, sk_argument = 0}, {sk_flags = 75, sk_attno = 0, sk_strategy = 0, sk_subtype = 0, sk_collation = 0, sk_func = {fn_addr = 0x4b, fn_oid = 25407424, 
              fn_nargs = 0, fn_strict = false, fn_retset = false, fn_stats = 72 'H', fn_extra = 0x183c708, fn_mcxt = 0x400100000004, fn_expr = 0x0}, sk_argument = 0}, {sk_flags = -707471392, sk_attno = 32764, sk_strategy = 0, sk_subtype = 10458414, sk_collation = 0, 
            sk_func = {fn_addr = 0x4001, fn_oid = 3587496000, fn_nargs = 32764, fn_strict = false, fn_retset = false, fn_stats = 239 '\357', fn_extra = 0x0, fn_mcxt = 0x0, fn_expr = 0x0}, sk_argument = 0}}
        relation = 0x4767f0 <memcmp@plt>
        scandesc = 0x1810c00
        ntp = 0x1d5d4d920
        ct = 0xaebc140017fe398
        arguments = {16385, 0, 0, 0}
#40 0x00000000009fbcdc in SearchCatCacheInternal (cache=0x1810c00, nkeys=1, v1=16385, v2=0, v3=0, v4=0) at catcache.c:1317
        arguments = {16385, 0, 0, 0}
        hashValue = 183222592
        hashIndex = 64
        iter = {cur = 0x18113f0, end = 0x18113f0}
        bucket = 0x18113f0
        ct = 0x74355be197f8
#41 0x00000000009fb9e3 in SearchCatCache1 (cache=0x1810c00, v1=16385) at catcache.c:1185
No locals.
#42 0x0000000000a16811 in SearchSysCache1 (cacheId=50, key1=16385) at syscache.c:1119
No locals.
#43 0x0000000000588b43 in pg_class_aclmask (table_oid=16385, roleid=10, mask=260, how=ACLMASK_ANY) at aclchk.c:3841
        result = 6758433
        tuple = 0x7ffcd5d4da40
        classForm = 0x7ffcd5d4da50
        aclDatum = 70373046237671
        isNull = false
        acl = 0x7ffcd5d4da48
        ownerId = 0
        __func__ = "pg_class_aclmask"
#44 0x0000000000589f2a in pg_class_aclcheck (table_oid=16385, roleid=10, mode=260) at aclchk.c:4629
No locals.
#45 0x0000000000670e6d in nextval_internal (relid=16385, check_permissions=true) at sequence.c:595
        elm = 0x1877920
        seqrel = 0x74355be197f8
        buf = 0
        page = 0x74355be171d0 "\256"
        pgstuple = 0xd1b83c8cd5d4dc2a
        pgsform = 0x6c39e7 <get_last_attnums_walker+257>
        seqdatatuple = {t_len = 0, t_self = {ip_blkid = {bi_hi = 0, bi_lo = 0}, ip_posid = 3392}, t_tableOid = 0, t_data = 0x7ffcd5d4da50}
        seq = 0x7ffcd5d4de10
        incby = 102371744448
        maxv = 10860349
        minv = 140723895982752
        cache = 25627064
        log = 25070760
        fetch = 23
        last = 10459375
        result = 140723895982880
        next = 23
        rescnt = 0
        cycle = false
        logit = false
        __func__ = "nextval_internal"
#46 0x0000000000670dfc in nextval_oid (fcinfo=0x1873260) at sequence.c:564
        relid = 16385
#47 0x00000000006c65ef in ExecInterpExpr (state=0x1872d08, econtext=0x1872958, isnull=0x7ffcd5d4dde7) at execExprInterp.c:678
        fcinfo = 0x1873260
        argnull = 0x18735a0
        argno = 1
        d = 23
        op = 0x1873678
        resultslot = 0x1872c08
        innerslot = 0x0
        outerslot = 0x0
        scanslot = 0x0
        dispatch_table = {0x6c5cea <ExecInterpExpr+146>, 0x6c5d11 <ExecInterpExpr+185>, 0x6c5d34 <ExecInterpExpr+220>, 0x6c5d57 <ExecInterpExpr+255>, 0x6c5d7a <ExecInterpExpr+290>, 0x6c5e0f <ExecInterpExpr+439>, 0x6c5ea4 <ExecInterpExpr+588>, 
          0x6c5f39 <ExecInterpExpr+737>, 0x6c5fea <ExecInterpExpr+914>, 0x6c609b <ExecInterpExpr+1091>, 0x6c614c <ExecInterpExpr+1268>, 0x6c617a <ExecInterpExpr+1314>, 0x6c6239 <ExecInterpExpr+1505>, 0x6c62f8 <ExecInterpExpr+1696>, 0x6c63b7 <ExecInterpExpr+1887>, 
          0x6c641b <ExecInterpExpr+1987>, 0x6c64cd <ExecInterpExpr+2165>, 0x6c6503 <ExecInterpExpr+2219>, 0x6c6570 <ExecInterpExpr+2328>, 0x6c662e <ExecInterpExpr+2518>, 0x6c665c <ExecInterpExpr+2564>, 0x6c668a <ExecInterpExpr+2610>, 0x6c6695 <ExecInterpExpr+2621>, 
          0x6c66fd <ExecInterpExpr+2725>, 0x6c6756 <ExecInterpExpr+2814>, 0x6c6761 <ExecInterpExpr+2825>, 0x6c67c9 <ExecInterpExpr+2929>, 0x6c6822 <ExecInterpExpr+3018>, 0x6c685a <ExecInterpExpr+3074>, 0x6c68cf <ExecInterpExpr+3191>, 0x6c68fa <ExecInterpExpr+3234>, 
          0x6c6945 <ExecInterpExpr+3309>, 0x6c6993 <ExecInterpExpr+3387>, 0x6c69ee <ExecInterpExpr+3478>, 0x6c6a30 <ExecInterpExpr+3544>, 0x6c6a75 <ExecInterpExpr+3613>, 0x6c6aa3 <ExecInterpExpr+3659>, 0x6c6ad1 <ExecInterpExpr+3705>, 0x6c6b0b <ExecInterpExpr+3763>, 
          0x6c6b6e <ExecInterpExpr+3862>, 0x6c6bd1 <ExecInterpExpr+3961>, 0x6c6c0b <ExecInterpExpr+4019>, 0x6c6c39 <ExecInterpExpr+4065>, 0x6c6c67 <ExecInterpExpr+4111>, 0x6c6c97 <ExecInterpExpr+4159>, 0x6c6d83 <ExecInterpExpr+4395>, 0x6c6dd9 <ExecInterpExpr+4481>, 
          0x6c6fc7 <ExecInterpExpr+4975>, 0x6c70c6 <ExecInterpExpr+5230>, 0x6c71b6 <ExecInterpExpr+5470>, 0x6c729f <ExecInterpExpr+5703>, 0x6c72c6 <ExecInterpExpr+5742>, 0x6c72ed <ExecInterpExpr+5781>, 0x6c7314 <ExecInterpExpr+5820>, 0x6c733b <ExecInterpExpr+5859>, 
          0x6c7369 <ExecInterpExpr+5905>, 0x6c7390 <ExecInterpExpr+5944>, 0x6c74dc <ExecInterpExpr+6276>, 0x6c75da <ExecInterpExpr+6530>, 0x6c7601 <ExecInterpExpr+6569>, 0x6c762f <ExecInterpExpr+6615>, 0x6c765d <ExecInterpExpr+6661>, 0x6c768b <ExecInterpExpr+6707>, 
          0x6c76e1 <ExecInterpExpr+6793>, 0x6c7708 <ExecInterpExpr+6832>, 0x6c772f <ExecInterpExpr+6871>, 0x6c6d0d <ExecInterpExpr+4277>, 0x6c77ab <ExecInterpExpr+6995>, 0x6c77d2 <ExecInterpExpr+7034>, 0x6c7756 <ExecInterpExpr+6910>, 0x6c7784 <ExecInterpExpr+6956>, 
          0x6c77f9 <ExecInterpExpr+7073>, 0x6c7820 <ExecInterpExpr+7112>, 0x6c78bc <ExecInterpExpr+7268>, 0x6c78e3 <ExecInterpExpr+7307>, 0x6c797f <ExecInterpExpr+7463>, 0x6c79ad <ExecInterpExpr+7509>, 0x6c79db <ExecInterpExpr+7555>, 0x6c7a29 <ExecInterpExpr+7633>, 
          0x6c7acc <ExecInterpExpr+7796>, 0x6c7b53 <ExecInterpExpr+7931>, 0x6c7c42 <ExecInterpExpr+8170>, 0x6c7cd8 <ExecInterpExpr+8320>, 0x6c7e6e <ExecInterpExpr+8726>, 0x6c8002 <ExecInterpExpr+9130>, 0x6c8030 <ExecInterpExpr+9176>, 0x6c805e <ExecInterpExpr+9222>}
#48 0x00000000006c80d4 in ExecInterpExprStillValid (state=0x1872d08, econtext=0x1872958, isNull=0x7ffcd5d4dde7) at execExprInterp.c:1786
No locals.
#49 0x00000000007099bb in ExecEvalExprSwitchContext (state=0x1872d08, econtext=0x1872958, isNull=0x7ffcd5d4dde7) at ../../../src/include/executor/executor.h:303
        retDatum = 140723895983840
        oldContext = 0x1871fb0
#50 0x0000000000709a24 in ExecProject (projInfo=0x1872d00) at ../../../src/include/executor/executor.h:337
        econtext = 0x1872958
        state = 0x1872d08
        slot = 0x1872c08
        isnull = false
#51 0x0000000000709bef in ExecResult (pstate=0x1872840) at nodeResult.c:136
        node = 0x1872840
        outerTupleSlot = 0x940
        outerPlan = 0x0
        econtext = 0x1872958
#52 0x00000000006dac78 in ExecProcNodeFirst (node=0x1872840) at execProcnode.c:445
No locals.
#53 0x0000000000703c7c in ExecProcNode (node=0x1872840) at ../../../src/include/executor/executor.h:237
No locals.
#54 0x0000000000706b37 in ExecModifyTable (pstate=0x1872430) at nodeModifyTable.c:2027
        node = 0x1872430
        proute = 0x0
        estate = 0x18720c8
        operation = CMD_INSERT
        saved_resultRelInfo = 0x0
        resultRelInfo = 0x1872318
        subplanstate = 0x1872840
        junkfilter = 0x0
        slot = 0x0
        planSlot = 0x74355be13980
        tupleid = 0x1872430
        tuple_ctid = {ip_blkid = {bi_hi = 0, bi_lo = 0}, ip_posid = 0}
        oldtupdata = {t_len = 0, t_self = {ip_blkid = {bi_hi = 0, bi_lo = 0}, ip_posid = 8984}, t_tableOid = 0, t_data = 0x7069b0 <ExecModifyTable>}
        oldtuple = 0xd5d4df40
        __func__ = "ExecModifyTable"
#55 0x00000000006dac78 in ExecProcNodeFirst (node=0x1872430) at execProcnode.c:445
No locals.
#56 0x00000000006cfe0d in ExecProcNode (node=0x1872430) at ../../../src/include/executor/executor.h:237
No locals.
#57 0x00000000006d26a3 in ExecutePlan (estate=0x18720c8, planstate=0x1872430, use_parallel_mode=false, operation=CMD_INSERT, sendTuples=false, numberTuples=0, direction=ForwardScanDirection, dest=0x1871b08, execute_once=true) at execMain.c:1721
        slot = 0x1871988
        current_tuple_count = 0
#58 0x00000000006d03df in standard_ExecutorRun (queryDesc=0x184dcf8, direction=ForwardScanDirection, count=0, execute_once=true) at execMain.c:362
        estate = 0x18720c8
        operation = CMD_INSERT
        dest = 0x1871b08
        sendTuples = false
        oldcontext = 0x184dbe0
        __func__ = "standard_ExecutorRun"
#59 0x00000000006d020d in ExecutorRun (queryDesc=0x184dcf8, direction=ForwardScanDirection, count=0, execute_once=true) at execMain.c:305
No locals.
#60 0x00000000008b88ef in ProcessQuery (plan=0x17ba158, sourceText=0x17b8678 "insert into t (b,c) values (1,1);", params=0x0, queryEnv=0x0, dest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:161
        queryDesc = 0x184dcf8
#61 0x00000000008ba20e in PortalRunMulti (portal=0x181cf08, isTopLevel=true, setHoldSnapshot=false, dest=0x1871b08, altdest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:1286
        pstmt = 0x17ba158
        active_snapshot_set = true
        stmtlist_item = 0x1871aa8
#62 0x00000000008b97e6 in PortalRun (portal=0x181cf08, count=9223372036854775807, isTopLevel=true, run_once=true, dest=0x1871b08, altdest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:799
        save_exception_stack = 0x7ffcd5d4e420
        save_context_stack = 0x0
        local_sigjmp_buf = {{__jmpbuf = {0, 8760467402448385434, 4680720, 140723895986512, 0, 0, 8760467402408539546, -8760974556716255846}, __mask_was_saved = 0, __saved_mask = {__val = {17205161752, 24872288, 64, 10664757, 1200, 13, 25624480, 140723895984752, 
                10841020, 25295944, 112, 25631608, 112, 3587498608, 25631496, 24872288}}}}
        result = false
        nprocessed = 0
        saveTopTransactionResourceOwner = 0x17e4fb0
        saveTopTransactionContext = 0x17dda50
        saveActivePortal = 0x0
        saveResourceOwner = 0x17e4fb0
        savePortalContext = 0x0
        saveMemoryContext = 0x17dda50
        __func__ = "PortalRun"
#63 0x00000000008b370b in exec_simple_query (query_string=0x17b8678 "insert into t (b,c) values (1,1);") at postgres.c:1122
        parsetree = 0x17b9548
        portal = 0x181cf08
        snapshot_set = true
        commandTag = 0xc3e550 "INSERT"
        completionTag = "\000\000\000\000\002\000\000\000\t\000\000\000\000\000\000\000\005u\243\000\000\000\000\000\220\212{\001!\000\000\000\060\343\324\325\374\177\000\000\061|\243\000\000\000\000\000\026", '\000' <repeats 14 times>
        querytree_list = 0x1870628
        plantree_list = 0x1871ad0
        receiver = 0x1871b08
        format = 0
        dest = DestRemote
        oldcontext = 0x17dda50
        parsetree_list = 0x17b95a8
        parsetree_item = 0x17b9580
        save_log_statement_stats = false
        was_logged = false
        use_implicit_block = false
        msec_str = "p\343\324\325\374\177\000\000\021K\243\000\000\000\000\000\006\000\000\000!\000\000\000x\206{\001\000\000\000"
        __func__ = "exec_simple_query"
#64 0x00000000008b79fa in PostgresMain (argc=1, argv=0x17e3510, dbname=0x17e3410 "test", username=0x17e33f0 "user") at postgres.c:4159
        query_string = 0x17b8678 "insert into t (b,c) values (1,1);"
        firstchar = 81
        input_message = {data = 0x17b8678 "insert into t (b,c) values (1,1);", len = 34, maxlen = 1024, cursor = 34}
        local_sigjmp_buf = {{__jmpbuf = {0, 8760467402546951578, 4680720, 140723895986512, 0, 0, 8760467402492425626, -8760974555640023654}, __mask_was_saved = 1, __saved_mask = {__val = {0, 24877744, 30064771072, 24872288, 0, 0, 10795057, 1024, 24877768, 
                140723895985392, 10799182, 24877768, 24872288, 24877768, 30089648840, 24877744}}}}
        send_ready_for_query = false
        disable_idle_in_transaction_timeout = false
        __func__ = "PostgresMain"
#65 0x0000000000815745 in BackendRun (port=0x17d8f90) at postmaster.c:4361
        av = 0x17e3510
        maxac = 2
        ac = 1
        secs = 587307795
        usecs = 871501
        i = 1
        __func__ = "BackendRun"
#66 0x0000000000814ea3 in BackendStartup (port=0x17d8f90) at postmaster.c:4033
        bn = 0x17db050
        pid = 0
        __func__ = "BackendStartup"
#67 0x0000000000811455 in ServerLoop () at postmaster.c:1706
        port = 0x17d8f90
        i = 2
        rmask = {fds_bits = {32, 0 <repeats 15 times>}}
        selres = 1
        now = 1533992595
        readmask = {fds_bits = {56, 0 <repeats 15 times>}}
        nSockets = 6
        last_lockfile_recheck_time = 1533992563
        last_touch_time = 1533992261
        __func__ = "ServerLoop"
#68 0x0000000000810d01 in PostmasterMain (argc=3, argv=0x17b3160) at postmaster.c:1379
        opt = -1
        status = 0
        userDoption = 0x17d4db0 "tmp/data-1"
        listen_addr_saved = true
        i = 64
        output_config_variable = 0x0
        __func__ = "PostmasterMain"
#69 0x0000000000739bb6 in main (argc=3, argv=0x17b3160) at main.c:228
        do_check_root = true

Core was generated by `postgres: user test [local] INSERT             '.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	}
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x000074355af74800 in __GI_abort () at abort.c:89
#2  0x0000000000a1d728 in errfinish (dummy=0) at elog.c:557
#3  0x00000000008ae18c in mdread (reln=0x184bc30, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x74354caedc00 "") at md.c:786
#4  0x00000000008b0abb in smgrread (reln=0x184bc30, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x74354caedc00 "") at smgr.c:628
#5  0x0000000000870ea6 in ReadBuffer_common (smgr=0x184bc30, relpersistence=112 'p', forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0, hit=0x7ffcd5d4b5eb) at bufmgr.c:890
#6  0x00000000008707c9 in ReadBufferExtended (reln=0x74355be49850, forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0) at bufmgr.c:664
#7  0x00000000008706a2 in ReadBuffer (reln=0x74355be49850, blockNum=3) at bufmgr.c:596
#8  0x0000000000500682 in _bt_getbuf (rel=0x74355be49850, blkno=3, access=1) at nbtpage.c:736
#9  0x00000000004ff413 in _bt_getroot (rel=0x74355be49850, access=1) at nbtpage.c:282
#10 0x0000000000506b0f in _bt_search (rel=0x74355be49850, keysz=1, scankey=0x7ffcd5d4c0d0, nextkey=false, bufP=0x7ffcd5d4cadc, access=1, snapshot=0xf79ba0 <CatalogSnapshotData>) at nbtsearch.c:104
#11 0x0000000000508280 in _bt_first (scan=0x1874100, dir=ForwardScanDirection) at nbtsearch.c:1060
#12 0x00000000005047ba in btgettuple (scan=0x1874100, dir=ForwardScanDirection) at nbtree.c:245
#13 0x00000000004f810e in index_getnext_tid (scan=0x1874100, direction=ForwardScanDirection) at indexam.c:541
#14 0x00000000004f854f in index_getnext (scan=0x1874100, direction=ForwardScanDirection) at indexam.c:679
#15 0x00000000004f6b79 in systable_getnext (sysscan=0x1874218) at genam.c:411
#16 0x0000000000a08480 in ScanPgRelation (targetRelId=16391, indexOK=true, force_non_historic=false) at relcache.c:358
#17 0x0000000000a0be35 in RelationReloadIndexInfo (relation=0x74355be13768) at relcache.c:2086
#18 0x0000000000a0c5f1 in RelationClearRelation (relation=0x74355be13768, rebuild=true) at relcache.c:2361
#19 0x0000000000a0cc03 in RelationFlushRelation (relation=0x74355be13768) at relcache.c:2584
#20 0x0000000000a0cd17 in RelationCacheInvalidateEntry (relationId=16391) at relcache.c:2636
#21 0x00000000009fe678 in LocalExecuteInvalidationMessage (msg=0x7ffcd5d4d050) at inval.c:587
#22 0x000000000088ece8 in ReceiveSharedInvalidMessages (invalFunction=0x9fe571 <LocalExecuteInvalidationMessage>, resetFunction=0x9fe7cd <InvalidateSystemCaches>) at sinval.c:91
#23 0x00000000009fe897 in AcceptInvalidationMessages () at inval.c:681
#24 0x0000000000892cab in LockRelationOid (relid=2662, lockmode=1) at lmgr.c:125
#25 0x00000000004d87a4 in relation_open (relationId=2662, lockmode=1) at heapam.c:1132
#26 0x00000000004f7245 in index_open (relationId=2662, lockmode=1) at indexam.c:154
#27 0x00000000004f6943 in systable_beginscan (heapRelation=0x74355be042b0, indexId=2662, indexOK=true, snapshot=0xf79ba0 <CatalogSnapshotData>, nkeys=1, key=0x7ffcd5d4d1b0) at genam.c:329
#28 0x0000000000a08470 in ScanPgRelation (targetRelId=16387, indexOK=true, force_non_historic=false) at relcache.c:353
#29 0x0000000000a09d65 in RelationBuildDesc (targetRelId=16387, insertIt=false) at relcache.c:1082
#30 0x0000000000a0c6c1 in RelationClearRelation (relation=0x74355be13980, rebuild=true) at relcache.c:2446
#31 0x0000000000a0cc03 in RelationFlushRelation (relation=0x74355be13980) at relcache.c:2584
#32 0x0000000000a0cd17 in RelationCacheInvalidateEntry (relationId=16387) at relcache.c:2636
#33 0x00000000009fe678 in LocalExecuteInvalidationMessage (msg=0x7ffcd5d4d5a0) at inval.c:587
#34 0x000000000088edc1 in ReceiveSharedInvalidMessages (invalFunction=0x9fe571 <LocalExecuteInvalidationMessage>, resetFunction=0x9fe7cd <InvalidateSystemCaches>) at sinval.c:121
#35 0x00000000009fe897 in AcceptInvalidationMessages () at inval.c:681
#36 0x0000000000892cab in LockRelationOid (relid=1259, lockmode=1) at lmgr.c:125
#37 0x00000000004d87a4 in relation_open (relationId=1259, lockmode=1) at heapam.c:1132
#38 0x00000000004d8a51 in heap_open (relationId=1259, lockmode=1) at heapam.c:1298
#39 0x00000000009fbdc5 in SearchCatCacheMiss (cache=0x1810c00, nkeys=1, hashValue=183222592, hashIndex=64, v1=16385, v2=0, v3=0, v4=0) at catcache.c:1375
#40 0x00000000009fbcdc in SearchCatCacheInternal (cache=0x1810c00, nkeys=1, v1=16385, v2=0, v3=0, v4=0) at catcache.c:1317
#41 0x00000000009fb9e3 in SearchCatCache1 (cache=0x1810c00, v1=16385) at catcache.c:1185
#42 0x0000000000a16811 in SearchSysCache1 (cacheId=50, key1=16385) at syscache.c:1119
#43 0x0000000000588b43 in pg_class_aclmask (table_oid=16385, roleid=10, mask=260, how=ACLMASK_ANY) at aclchk.c:3841
#44 0x0000000000589f2a in pg_class_aclcheck (table_oid=16385, roleid=10, mode=260) at aclchk.c:4629
#45 0x0000000000670e6d in nextval_internal (relid=16385, check_permissions=true) at sequence.c:595
#46 0x0000000000670dfc in nextval_oid (fcinfo=0x1873260) at sequence.c:564
#47 0x00000000006c65ef in ExecInterpExpr (state=0x1872d08, econtext=0x1872958, isnull=0x7ffcd5d4dde7) at execExprInterp.c:678
#48 0x00000000006c80d4 in ExecInterpExprStillValid (state=0x1872d08, econtext=0x1872958, isNull=0x7ffcd5d4dde7) at execExprInterp.c:1786
#49 0x00000000007099bb in ExecEvalExprSwitchContext (state=0x1872d08, econtext=0x1872958, isNull=0x7ffcd5d4dde7) at ../../../src/include/executor/executor.h:303
#50 0x0000000000709a24 in ExecProject (projInfo=0x1872d00) at ../../../src/include/executor/executor.h:337
#51 0x0000000000709bef in ExecResult (pstate=0x1872840) at nodeResult.c:136
#52 0x00000000006dac78 in ExecProcNodeFirst (node=0x1872840) at execProcnode.c:445
#53 0x0000000000703c7c in ExecProcNode (node=0x1872840) at ../../../src/include/executor/executor.h:237
#54 0x0000000000706b37 in ExecModifyTable (pstate=0x1872430) at nodeModifyTable.c:2027
#55 0x00000000006dac78 in ExecProcNodeFirst (node=0x1872430) at execProcnode.c:445
#56 0x00000000006cfe0d in ExecProcNode (node=0x1872430) at ../../../src/include/executor/executor.h:237
#57 0x00000000006d26a3 in ExecutePlan (estate=0x18720c8, planstate=0x1872430, use_parallel_mode=false, operation=CMD_INSERT, sendTuples=false, numberTuples=0, direction=ForwardScanDirection, dest=0x1871b08, execute_once=true) at execMain.c:1721
#58 0x00000000006d03df in standard_ExecutorRun (queryDesc=0x186bc18, direction=ForwardScanDirection, count=0, execute_once=true) at execMain.c:362
#59 0x00000000006d020d in ExecutorRun (queryDesc=0x186bc18, direction=ForwardScanDirection, count=0, execute_once=true) at execMain.c:305
#60 0x00000000008b88ef in ProcessQuery (plan=0x17ba158, sourceText=0x17b8678 "insert into t (b,c) values (1,1);", params=0x0, queryEnv=0x0, dest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:161
#61 0x00000000008ba20e in PortalRunMulti (portal=0x181cf08, isTopLevel=true, setHoldSnapshot=false, dest=0x1871b08, altdest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:1286
#62 0x00000000008b97e6 in PortalRun (portal=0x181cf08, count=9223372036854775807, isTopLevel=true, run_once=true, dest=0x1871b08, altdest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:799
#63 0x00000000008b370b in exec_simple_query (query_string=0x17b8678 "insert into t (b,c) values (1,1);") at postgres.c:1122
#64 0x00000000008b79fa in PostgresMain (argc=1, argv=0x17e34f0, dbname=0x17e33f0 "test", username=0x17b51f8 "user") at postgres.c:4159
#65 0x0000000000815745 in BackendRun (port=0x17d8f90) at postmaster.c:4361
#66 0x0000000000814ea3 in BackendStartup (port=0x17d8f90) at postmaster.c:4033
#67 0x0000000000811455 in ServerLoop () at postmaster.c:1706
#68 0x0000000000810d01 in PostmasterMain (argc=3, argv=0x17b3160) at postmaster.c:1379
#69 0x0000000000739bb6 in main (argc=3, argv=0x17b3160) at main.c:228


Attachments:

  [text/plain] backtrace-full.txt (71.9K, ../../bc07e92b-d3b9-fabc-2993-edc0ef89be67@2ndquadrant.com/2-backtrace-full.txt)
  download

  [text/plain] backtrace.txt (7.8K, ../../bc07e92b-d3b9-fabc-2993-edc0ef89be67@2ndquadrant.com/3-backtrace.txt)
  download | inline:
Core was generated by `postgres: user test [local] INSERT             '.
Program terminated with signal SIGABRT, Aborted.
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
51	}
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x000074355af74800 in __GI_abort () at abort.c:89
#2  0x0000000000a1d728 in errfinish (dummy=0) at elog.c:557
#3  0x00000000008ae18c in mdread (reln=0x184bc30, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x74354caedc00 "") at md.c:786
#4  0x00000000008b0abb in smgrread (reln=0x184bc30, forknum=MAIN_FORKNUM, blocknum=3, buffer=0x74354caedc00 "") at smgr.c:628
#5  0x0000000000870ea6 in ReadBuffer_common (smgr=0x184bc30, relpersistence=112 'p', forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0, hit=0x7ffcd5d4b5eb) at bufmgr.c:890
#6  0x00000000008707c9 in ReadBufferExtended (reln=0x74355be49850, forkNum=MAIN_FORKNUM, blockNum=3, mode=RBM_NORMAL, strategy=0x0) at bufmgr.c:664
#7  0x00000000008706a2 in ReadBuffer (reln=0x74355be49850, blockNum=3) at bufmgr.c:596
#8  0x0000000000500682 in _bt_getbuf (rel=0x74355be49850, blkno=3, access=1) at nbtpage.c:736
#9  0x00000000004ff413 in _bt_getroot (rel=0x74355be49850, access=1) at nbtpage.c:282
#10 0x0000000000506b0f in _bt_search (rel=0x74355be49850, keysz=1, scankey=0x7ffcd5d4c0d0, nextkey=false, bufP=0x7ffcd5d4cadc, access=1, snapshot=0xf79ba0 <CatalogSnapshotData>) at nbtsearch.c:104
#11 0x0000000000508280 in _bt_first (scan=0x1874100, dir=ForwardScanDirection) at nbtsearch.c:1060
#12 0x00000000005047ba in btgettuple (scan=0x1874100, dir=ForwardScanDirection) at nbtree.c:245
#13 0x00000000004f810e in index_getnext_tid (scan=0x1874100, direction=ForwardScanDirection) at indexam.c:541
#14 0x00000000004f854f in index_getnext (scan=0x1874100, direction=ForwardScanDirection) at indexam.c:679
#15 0x00000000004f6b79 in systable_getnext (sysscan=0x1874218) at genam.c:411
#16 0x0000000000a08480 in ScanPgRelation (targetRelId=16391, indexOK=true, force_non_historic=false) at relcache.c:358
#17 0x0000000000a0be35 in RelationReloadIndexInfo (relation=0x74355be13768) at relcache.c:2086
#18 0x0000000000a0c5f1 in RelationClearRelation (relation=0x74355be13768, rebuild=true) at relcache.c:2361
#19 0x0000000000a0cc03 in RelationFlushRelation (relation=0x74355be13768) at relcache.c:2584
#20 0x0000000000a0cd17 in RelationCacheInvalidateEntry (relationId=16391) at relcache.c:2636
#21 0x00000000009fe678 in LocalExecuteInvalidationMessage (msg=0x7ffcd5d4d050) at inval.c:587
#22 0x000000000088ece8 in ReceiveSharedInvalidMessages (invalFunction=0x9fe571 <LocalExecuteInvalidationMessage>, resetFunction=0x9fe7cd <InvalidateSystemCaches>) at sinval.c:91
#23 0x00000000009fe897 in AcceptInvalidationMessages () at inval.c:681
#24 0x0000000000892cab in LockRelationOid (relid=2662, lockmode=1) at lmgr.c:125
#25 0x00000000004d87a4 in relation_open (relationId=2662, lockmode=1) at heapam.c:1132
#26 0x00000000004f7245 in index_open (relationId=2662, lockmode=1) at indexam.c:154
#27 0x00000000004f6943 in systable_beginscan (heapRelation=0x74355be042b0, indexId=2662, indexOK=true, snapshot=0xf79ba0 <CatalogSnapshotData>, nkeys=1, key=0x7ffcd5d4d1b0) at genam.c:329
#28 0x0000000000a08470 in ScanPgRelation (targetRelId=16387, indexOK=true, force_non_historic=false) at relcache.c:353
#29 0x0000000000a09d65 in RelationBuildDesc (targetRelId=16387, insertIt=false) at relcache.c:1082
#30 0x0000000000a0c6c1 in RelationClearRelation (relation=0x74355be13980, rebuild=true) at relcache.c:2446
#31 0x0000000000a0cc03 in RelationFlushRelation (relation=0x74355be13980) at relcache.c:2584
#32 0x0000000000a0cd17 in RelationCacheInvalidateEntry (relationId=16387) at relcache.c:2636
#33 0x00000000009fe678 in LocalExecuteInvalidationMessage (msg=0x7ffcd5d4d5a0) at inval.c:587
#34 0x000000000088edc1 in ReceiveSharedInvalidMessages (invalFunction=0x9fe571 <LocalExecuteInvalidationMessage>, resetFunction=0x9fe7cd <InvalidateSystemCaches>) at sinval.c:121
#35 0x00000000009fe897 in AcceptInvalidationMessages () at inval.c:681
#36 0x0000000000892cab in LockRelationOid (relid=1259, lockmode=1) at lmgr.c:125
#37 0x00000000004d87a4 in relation_open (relationId=1259, lockmode=1) at heapam.c:1132
#38 0x00000000004d8a51 in heap_open (relationId=1259, lockmode=1) at heapam.c:1298
#39 0x00000000009fbdc5 in SearchCatCacheMiss (cache=0x1810c00, nkeys=1, hashValue=183222592, hashIndex=64, v1=16385, v2=0, v3=0, v4=0) at catcache.c:1375
#40 0x00000000009fbcdc in SearchCatCacheInternal (cache=0x1810c00, nkeys=1, v1=16385, v2=0, v3=0, v4=0) at catcache.c:1317
#41 0x00000000009fb9e3 in SearchCatCache1 (cache=0x1810c00, v1=16385) at catcache.c:1185
#42 0x0000000000a16811 in SearchSysCache1 (cacheId=50, key1=16385) at syscache.c:1119
#43 0x0000000000588b43 in pg_class_aclmask (table_oid=16385, roleid=10, mask=260, how=ACLMASK_ANY) at aclchk.c:3841
#44 0x0000000000589f2a in pg_class_aclcheck (table_oid=16385, roleid=10, mode=260) at aclchk.c:4629
#45 0x0000000000670e6d in nextval_internal (relid=16385, check_permissions=true) at sequence.c:595
#46 0x0000000000670dfc in nextval_oid (fcinfo=0x1873260) at sequence.c:564
#47 0x00000000006c65ef in ExecInterpExpr (state=0x1872d08, econtext=0x1872958, isnull=0x7ffcd5d4dde7) at execExprInterp.c:678
#48 0x00000000006c80d4 in ExecInterpExprStillValid (state=0x1872d08, econtext=0x1872958, isNull=0x7ffcd5d4dde7) at execExprInterp.c:1786
#49 0x00000000007099bb in ExecEvalExprSwitchContext (state=0x1872d08, econtext=0x1872958, isNull=0x7ffcd5d4dde7) at ../../../src/include/executor/executor.h:303
#50 0x0000000000709a24 in ExecProject (projInfo=0x1872d00) at ../../../src/include/executor/executor.h:337
#51 0x0000000000709bef in ExecResult (pstate=0x1872840) at nodeResult.c:136
#52 0x00000000006dac78 in ExecProcNodeFirst (node=0x1872840) at execProcnode.c:445
#53 0x0000000000703c7c in ExecProcNode (node=0x1872840) at ../../../src/include/executor/executor.h:237
#54 0x0000000000706b37 in ExecModifyTable (pstate=0x1872430) at nodeModifyTable.c:2027
#55 0x00000000006dac78 in ExecProcNodeFirst (node=0x1872430) at execProcnode.c:445
#56 0x00000000006cfe0d in ExecProcNode (node=0x1872430) at ../../../src/include/executor/executor.h:237
#57 0x00000000006d26a3 in ExecutePlan (estate=0x18720c8, planstate=0x1872430, use_parallel_mode=false, operation=CMD_INSERT, sendTuples=false, numberTuples=0, direction=ForwardScanDirection, dest=0x1871b08, execute_once=true) at execMain.c:1721
#58 0x00000000006d03df in standard_ExecutorRun (queryDesc=0x186bc18, direction=ForwardScanDirection, count=0, execute_once=true) at execMain.c:362
#59 0x00000000006d020d in ExecutorRun (queryDesc=0x186bc18, direction=ForwardScanDirection, count=0, execute_once=true) at execMain.c:305
#60 0x00000000008b88ef in ProcessQuery (plan=0x17ba158, sourceText=0x17b8678 "insert into t (b,c) values (1,1);", params=0x0, queryEnv=0x0, dest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:161
#61 0x00000000008ba20e in PortalRunMulti (portal=0x181cf08, isTopLevel=true, setHoldSnapshot=false, dest=0x1871b08, altdest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:1286
#62 0x00000000008b97e6 in PortalRun (portal=0x181cf08, count=9223372036854775807, isTopLevel=true, run_once=true, dest=0x1871b08, altdest=0x1871b08, completionTag=0x7ffcd5d4e2e0 "") at pquery.c:799
#63 0x00000000008b370b in exec_simple_query (query_string=0x17b8678 "insert into t (b,c) values (1,1);") at postgres.c:1122
#64 0x00000000008b79fa in PostgresMain (argc=1, argv=0x17e34f0, dbname=0x17e33f0 "test", username=0x17b51f8 "user") at postgres.c:4159
#65 0x0000000000815745 in BackendRun (port=0x17d8f90) at postmaster.c:4361
#66 0x0000000000814ea3 in BackendStartup (port=0x17d8f90) at postmaster.c:4033
#67 0x0000000000811455 in ServerLoop () at postmaster.c:1706
#68 0x0000000000810d01 in PostmasterMain (argc=3, argv=0x17b3160) at postmaster.c:1379
#69 0x0000000000739bb6 in main (argc=3, argv=0x17b3160) at main.c:228

^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 13:43  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Andres Freund <andres@anarazel.de>
  1 sibling, 1 reply; 27+ messages in thread

From: Tomas Vondra @ 2018-08-11 13:43 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

On 08/10/2018 11:13 PM, Andres Freund wrote:
> On 2018-08-10 22:57:57 +0200, Tomas Vondra wrote:
>>
>>
>> On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
>>> On 2018-Aug-09, Tomas Vondra wrote:
>>>
>>>> I suppose there are reasons why it's done this way, and admittedly the test
>>>> that happens to trigger this is a bit extreme (essentially running pgbench
>>>> concurrently with 'vacuum full pg_class' in a loop). I'm not sure it's
>>>> extreme enough to deem it not an issue, because people using many temporary
>>>> tables often deal with bloat by doing frequent vacuum full on catalogs.
>>>
>>> Actually, it seems to me that ApplyLogicalMappingFile is just leaking
>>> the file descriptor for no good reason.  There's a different
>>> OpenTransientFile call in ReorderBufferRestoreChanges that is not
>>> intended to be closed immediately, but the other one seems a plain bug,
>>> easy enough to fix.
>>>
>>
>> Indeed. Adding a CloseTransientFile to ApplyLogicalMappingFile
>> solves the issue with hitting maxAllocatedDecs. Barring objections
>> I'll commit this shortly.
> 
> Yea, that's clearly a bug. I've not seen a patch, so I can't quite
> formally sign off, but it seems fairly obvious.
> 

I think the fix can be as simple as attached ... I'm mostly afk for the
weekend, so I'll commit & backpatch on Monday or so.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

  [text/x-patch] reorderbuffer-close.patch (434B, ../../79a0c7f4-89fb-cf8d-82eb-5a7ca8e08d56@2ndquadrant.com/2-reorderbuffer-close.patch)
  download | inline diff:
diff --git a/src/backend/replication/logical/reorderbuffer.c b/src/backend/replication/logical/reorderbuffer.c
index 47e669578f..1a1a0fa469 100644
--- a/src/backend/replication/logical/reorderbuffer.c
+++ b/src/backend/replication/logical/reorderbuffer.c
@@ -3327,6 +3327,8 @@ ApplyLogicalMappingFile(HTAB *tuplecid_data, Oid relid, const char *fname)
 			new_ent->combocid = ent->combocid;
 		}
 	}
+
+	CloseTransientFile(fd);
 }
 
 

^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 14:15  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 1 reply; 27+ messages in thread

From: Tom Lane @ 2018-08-11 14:15 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: Andres Freund <andres@anarazel.de>; Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
>>> On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
>>>> Actually, it seems to me that ApplyLogicalMappingFile is just leaking
>>>> the file descriptor for no good reason.

> I think the fix can be as simple as attached ... I'm mostly afk for the
> weekend, so I'll commit & backpatch on Monday or so.

LGTM.  While you're at it, would you fix the misspelling three lines
below this?

 * Check whether the TransactionOId 'xid' is in the pre-sorted array 'xip'.
                                ^

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-11 14:18  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 27+ messages in thread

From: Tomas Vondra @ 2018-08-11 14:18 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

On 08/11/2018 04:15 PM, Tom Lane wrote:
> Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
>>>> On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
>>>>> Actually, it seems to me that ApplyLogicalMappingFile is just leaking
>>>>> the file descriptor for no good reason.
> 
>> I think the fix can be as simple as attached ... I'm mostly afk for the
>> weekend, so I'll commit & backpatch on Monday or so.
> 
> LGTM.  While you're at it, would you fix the misspelling three lines
> below this?
> 
>  * Check whether the TransactionOId 'xid' is in the pre-sorted array 'xip'.
>                                 ^
> 

Sure.

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-13 14:46  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 1 reply; 27+ messages in thread

From: Alvaro Herrera @ 2018-08-13 14:46 UTC (permalink / raw)
  To: Tomas Vondra <tomas.vondra@2ndquadrant.com>; +Cc: Andres Freund <andres@anarazel.de>; pgsql-hackers

On 2018-Aug-11, Tomas Vondra wrote:

> Hmmm, it's difficult to compare "bt full" output, but my backtraces look
> somewhat different (and all the backtraces I'm seeing are 100% exactly
> the same). Attached for comparison.

Hmm, looks similar enough to me -- at the bottom you have the executor
doing its thing, then an AcceptInvalidationMessages in the middle
section atop which sit a few more catalog accesses, and further up from
that you have another AcceptInvalidationMessages with more catalog
accesses.  AFAICS that's pretty much the same thing Andres was
describing.  I think the exact shape of the executor bits is not
relevant, and I suppose the exact details of what occurs when
invalidation messages are processed are not terribly important either.
I think in Andres' backtrace there are *three*
AcceptInvalidationMessages rather than two as in your case, but that
shouldn't be important either, just the fact that there are N nested
ones.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-13 14:49  Andres Freund <andres@anarazel.de>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 1 reply; 27+ messages in thread

From: Andres Freund @ 2018-08-13 14:49 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; pgsql-hackers

Hi,

On 2018-08-13 11:46:30 -0300, Alvaro Herrera wrote:
> On 2018-Aug-11, Tomas Vondra wrote:
> 
> > Hmmm, it's difficult to compare "bt full" output, but my backtraces look
> > somewhat different (and all the backtraces I'm seeing are 100% exactly
> > the same). Attached for comparison.
> 
> Hmm, looks similar enough to me -- at the bottom you have the executor
> doing its thing, then an AcceptInvalidationMessages in the middle
> section atop which sit a few more catalog accesses, and further up from
> that you have another AcceptInvalidationMessages with more catalog
> accesses.  AFAICS that's pretty much the same thing Andres was
> describing.

It's somewhat different because it doesn't seem to involve a reload of a
nailed table, which my traces did.  I wasn't able to reproduce the crash
more than once, so I'm not at all sure how to properly verify the issue.
I'd appreciate if Thomas could try to do so again with the small patch I
provided.

Greetings,

Andres Freund




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-13 14:50  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 27+ messages in thread

From: Alvaro Herrera @ 2018-08-13 14:50 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; pgsql-hackers

On 2018-Aug-11, Andres Freund wrote:

> On 2018-08-11 00:46:25 -0700, Andres Freund wrote:
> > Below you can find the bt full showing a bunch of nested invalidations. Looking.
> 
> Hm. I wonder if the attached fixes the issue for you.  If it's this I
> don't understand why this doesn't occur on older branches...
> 
> I've not yet been able to reliably reproduce the issue without the
> patch, so I'm not sure it means much that it didn't reoccur afterwards.

Well, the line you're patching was introduced in 2ce64caaf793 (looking
at pg10), and was not replacing a line with the exact same mistake.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-13 14:54  Andres Freund <andres@anarazel.de>
  parent: Alvaro Herrera <alvherre@2ndquadrant.com>
  0 siblings, 0 replies; 27+ messages in thread

From: Andres Freund @ 2018-08-13 14:54 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>; pgsql-hackers

On 2018-08-13 11:50:41 -0300, Alvaro Herrera wrote:
> On 2018-Aug-11, Andres Freund wrote:
> 
> > On 2018-08-11 00:46:25 -0700, Andres Freund wrote:
> > > Below you can find the bt full showing a bunch of nested invalidations. Looking.
> > 
> > Hm. I wonder if the attached fixes the issue for you.  If it's this I
> > don't understand why this doesn't occur on older branches...
> > 
> > I've not yet been able to reliably reproduce the issue without the
> > patch, so I'm not sure it means much that it didn't reoccur afterwards.
> 
> Well, the line you're patching was introduced in 2ce64caaf793 (looking
> at pg10), and was not replacing a line with the exact same mistake.

I'm not clear on what you're trying to say?  My problem is that Thomas'
backtraces don't show involvement by that function, which makes it less
likely that it matters, no?

Greetings,

Andres Freund




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-14 11:49  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 27+ messages in thread

From: Tomas Vondra @ 2018-08-14 11:49 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-hackers

On 08/13/2018 04:49 PM, Andres Freund wrote:
> Hi,
> 
> On 2018-08-13 11:46:30 -0300, Alvaro Herrera wrote:
>> On 2018-Aug-11, Tomas Vondra wrote:
>>
>>> Hmmm, it's difficult to compare "bt full" output, but my backtraces look
>>> somewhat different (and all the backtraces I'm seeing are 100% exactly
>>> the same). Attached for comparison.
>>
>> Hmm, looks similar enough to me -- at the bottom you have the executor
>> doing its thing, then an AcceptInvalidationMessages in the middle
>> section atop which sit a few more catalog accesses, and further up from
>> that you have another AcceptInvalidationMessages with more catalog
>> accesses.  AFAICS that's pretty much the same thing Andres was
>> describing.
> 
> It's somewhat different because it doesn't seem to involve a reload of a
> nailed table, which my traces did.  I wasn't able to reproduce the crash
> more than once, so I'm not at all sure how to properly verify the issue.
> I'd appreciate if Thomas could try to do so again with the small patch I
> provided.
> 

I'll try in the evening. I've tried reproducing it on my laptop, but I 
can't make that happen for some reason - I know I've seen some crashes 
here, but all the reproducers were from the workstation I have at home.

I wonder if there's some subtle difference between the two boxes, making 
it more likely on one of them ... the whole environment (distribution, 
packages, compiler, ...) should be exactly the same, though. The only 
thing I can think of is different CPU speed, possibly making some race 
conditions more/less likely. No idea.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-14 14:05  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 1 reply; 27+ messages in thread

From: Tomas Vondra @ 2018-08-14 14:05 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-hackers

On 08/14/2018 01:49 PM, Tomas Vondra wrote:
> On 08/13/2018 04:49 PM, Andres Freund wrote:
>> Hi,
>>
>> On 2018-08-13 11:46:30 -0300, Alvaro Herrera wrote:
>>> On 2018-Aug-11, Tomas Vondra wrote:
>>>
>>>> Hmmm, it's difficult to compare "bt full" output, but my backtraces 
>>>> look
>>>> somewhat different (and all the backtraces I'm seeing are 100% exactly
>>>> the same). Attached for comparison.
>>>
>>> Hmm, looks similar enough to me -- at the bottom you have the executor
>>> doing its thing, then an AcceptInvalidationMessages in the middle
>>> section atop which sit a few more catalog accesses, and further up from
>>> that you have another AcceptInvalidationMessages with more catalog
>>> accesses.  AFAICS that's pretty much the same thing Andres was
>>> describing.
>>
>> It's somewhat different because it doesn't seem to involve a reload of a
>> nailed table, which my traces did.  I wasn't able to reproduce the crash
>> more than once, so I'm not at all sure how to properly verify the issue.
>> I'd appreciate if Thomas could try to do so again with the small patch I
>> provided.
>>
> 
> I'll try in the evening. I've tried reproducing it on my laptop, but I 
> can't make that happen for some reason - I know I've seen some crashes 
> here, but all the reproducers were from the workstation I have at home.
> 
> I wonder if there's some subtle difference between the two boxes, making 
> it more likely on one of them ... the whole environment (distribution, 
> packages, compiler, ...) should be exactly the same, though. The only 
> thing I can think of is different CPU speed, possibly making some race 
> conditions more/less likely. No idea.
> 

I take that back - I can reproduce the crashes, both with and without 
the patch, all the way back to 9.6. Attached is a bunch of backtraces 
from various versions. There's a bit of variability depending on which 
pgbench script gets started first (insert.sql or vacuum.sql) - in one 
case (when vacuum is started before insert) the crash happens in 
InitPostgres/RelationCacheInitializePhase3, otherwise it happens in 
exec_simple_query.

Another observation is that the failing COPY is not necessary, I can 
reproduce the crashes without this (so even with wal_level=replica).

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachments:

  [application/gzip] crash-10.log.gz (9.2K, ../../9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com/2-crash-10.log.gz)
  download

  [application/gzip] crash-11.log.gz (9.3K, ../../9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com/3-crash-11.log.gz)
  download

  [application/gzip] crash-11-2.log.gz (13.1K, ../../9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com/4-crash-11-2.log.gz)
  download

  [application/gzip] crash-11-3.log.gz (10.3K, ../../9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com/5-crash-11-3.log.gz)
  download

  [application/gzip] crash-96.log.gz (10.1K, ../../9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com/6-crash-96.log.gz)
  download

  [application/gzip] crash-96-2.log.gz (10.1K, ../../9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com/7-crash-96-2.log.gz)
  download

  [application/gzip] crash-96-logical.log.gz (11.9K, ../../9552a9ef-250d-c7bf-abca-0c0533215fee@2ndquadrant.com/8-crash-96-logical.log.gz)
  download

^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-14 21:26  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 0 replies; 27+ messages in thread

From: Tomas Vondra @ 2018-08-14 21:26 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: pgsql-hackers



On 8/14/18 10:05 AM, Tomas Vondra wrote:
> ...
 >
> I take that back - I can reproduce the crashes, both with and without 
> the patch, all the way back to 9.6. Attached is a bunch of backtraces 
> from various versions. There's a bit of variability depending on which 
> pgbench script gets started first (insert.sql or vacuum.sql) - in one 
> case (when vacuum is started before insert) the crash happens in 
> InitPostgres/RelationCacheInitializePhase3, otherwise it happens in 
> exec_simple_query.
> 
> Another observation is that the failing COPY is not necessary, I can 
> reproduce the crashes without this (so even with wal_level=replica).
>

BTW I have managed to reproduce this on an old test server. If anyone 
wants to take a look, I can arrange ssh access to that machine (for 
trustworthy developers). Let me know.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* Re: logical decoding / rewrite map vs. maxAllocatedDescs
@ 2018-08-16 15:07  Tomas Vondra <tomas.vondra@2ndquadrant.com>
  parent: Tomas Vondra <tomas.vondra@2ndquadrant.com>
  0 siblings, 0 replies; 27+ messages in thread

From: Tomas Vondra @ 2018-08-16 15:07 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; Alvaro Herrera <alvherre@2ndquadrant.com>; pgsql-hackers

On 08/11/2018 04:18 PM, Tomas Vondra wrote:
> On 08/11/2018 04:15 PM, Tom Lane wrote:
>> Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
>>>>> On 08/09/2018 07:47 PM, Alvaro Herrera wrote:
>>>>>> Actually, it seems to me that ApplyLogicalMappingFile is just leaking
>>>>>> the file descriptor for no good reason.
>>
>>> I think the fix can be as simple as attached ... I'm mostly afk for the
>>> weekend, so I'll commit & backpatch on Monday or so.
>>
>> LGTM.  While you're at it, would you fix the misspelling three lines
>> below this?
>>
>>  * Check whether the TransactionOId 'xid' is in the pre-sorted array 'xip'.
>>                                 ^
> 
> Sure.
> 

I've pushed this, and backpatched it all the way back to 9.4 where
logical decoding was introduced.

While this resolves the way to run out of file descriptors, I wonder if
there are other trivial ways to trigger it (say, long-running
transaction spanning many 'vacuum full pg_class' runs). Not sure, will
try later.

The other question is whether errors are handled correctly - as reported
initially, I've seen this to trigger

ERROR:  XX000: subtransaction logged without previous top-level txn record

I assume just fixing the error did not really fix that, so that if
something else fails we might end up in the same state.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




^ permalink  raw  reply  [nested|flat] 27+ messages in thread


end of thread, other threads:[~2018-08-16 15:07 UTC | newest]

Thread overview: 27+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-09 17:31 logical decoding / rewrite map vs. maxAllocatedDescs Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-09 17:42 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-08-09 17:58   ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-08-09 17:47 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-08-09 17:58   ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-10 20:57   ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-10 21:13     ` Andres Freund <andres@anarazel.de>
2018-08-10 21:59       ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-10 23:55         ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-11 07:06           ` Andres Freund <andres@anarazel.de>
2018-08-11 07:15             ` Peter Geoghegan <pg@bowt.ie>
2018-08-11 07:34           ` Andres Freund <andres@anarazel.de>
2018-08-11 07:46             ` Andres Freund <andres@anarazel.de>
2018-08-11 07:57               ` Andres Freund <andres@anarazel.de>
2018-08-13 14:50                 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-08-13 14:54                   ` Andres Freund <andres@anarazel.de>
2018-08-11 13:14               ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-13 14:46                 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2018-08-13 14:49                   ` Andres Freund <andres@anarazel.de>
2018-08-14 11:49                     ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-14 14:05                       ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-14 21:26                         ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-11 13:11             ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-11 13:43       ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-11 14:15         ` Tom Lane <tgl@sss.pgh.pa.us>
2018-08-11 14:18           ` Tomas Vondra <tomas.vondra@2ndquadrant.com>
2018-08-16 15:07             ` Tomas Vondra <tomas.vondra@2ndquadrant.com>

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