pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: ptang@pivotal.io
Subject: BUG #15775: pg_get_indexdef: could not open relation with OID 16385
Date: Tue, 23 Apr 2019 03:19:21 +0000
Message-ID: <15775-beb18bcc52db9e36@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15775
Logged by:          Pengzhou Tang
Email address:      ptang@pivotal.io
PostgreSQL version: 11.2
Operating system:   centos 7
Description:        

Hi, Developers,

I hit this error when running bellow queries concurrently:
1. select pg_get_indexdef('idx_foo'::regclass);
2. drop table foo;

To repo easier, break at set_relation_column_names in session 1 and then run
session 2, error occurs.

Question:
Why pg_get_expr() doesn't acquire and hold an AccessShareLock if it needs to
access the relation later.



Message-ID: <15775-beb18bcc52db9e36@postgresql.org>
Permalink:  ../15775-beb18bcc52db9e36@postgresql.org/
Also on:    postgresql.org/message-id/15775-beb18bcc52db9e36@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, ptang@pivotal.io
  Subject: Re: BUG #15775: pg_get_indexdef: could not open relation with OID 16385
  In-Reply-To: <15775-beb18bcc52db9e36@postgresql.org>
  References: <15775-beb18bcc52db9e36@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox