pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: adurugkar@xento.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11321: describe command is getting locked due to ALTER statement running on public table
Date: Mon, 01 Sep 2014 13:01:54 -0400
Message-ID: <11249.1409590914@sss.pgh.pa.us> (raw)
In-Reply-To: <20140901115537.2921.56171@wrigleys.postgresql.org>
References: <20140901115537.2921.56171@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

adurugkar@xento.com writes:
> describe command is getting locked due to ALTER statement running on real
> table.

This isn't a bug IMO; if anything, it's a bug that the old implementation
of pg_get_indexdef didn't result in acquiring any lock.  Without a lock,
you're at least at risk of printing garbage information, and I suspect
crashes were not out of the question.

> It was working fine on 9.3.4 version.

I rather doubt this behavior changed just in 9.3.5.  That code got
rewritten during 9.3 development.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (2+ messages)

Message-ID: <11249.1409590914@sss.pgh.pa.us>
Permalink:  ../11249.1409590914@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11249.1409590914@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, adurugkar@xento.com
  Subject: Re: BUG #11321: describe command is getting locked due to ALTER statement running on public table
  In-Reply-To: <11249.1409590914@sss.pgh.pa.us>
  References: <20140901115537.2921.56171@wrigleys.postgresql.org> <11249.1409590914@sss.pgh.pa.us>

* 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