From: David Waller <dwaller@yammer-inc.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14237: Terrible performance after accidentally running 'drop index' for index still being created
Date: Wed, 13 Jul 2016 10:42:09 +0000
Message-ID: <906C6061-69F6-44B9-9CC9-40281E3F27D6@microsoft.com> (raw)
In-Reply-To: <24589.1468256920@sss.pgh.pa.us>
References: <20160708102407.1409.87848@wrigleys.postgresql.org>
<11675.1467990502@sss.pgh.pa.us>
<6A9A127D-FE6F-422D-BE82-B8154757367F@microsoft.com>
<24589.1468256920@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 11/07/2016, 18:08, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> David Waller <dwaller@yammer-inc.com> writes:
> > Thank you for the detailed explanation. This all seems very sensible, and
> > reasonable behaviour from Postgres. Yet... it still 'allowed' me to shoot myself
> > painfully in the foot. User error, I agree, yet people make mistakes - could
> > Postgres behave more gracefully?
>
> Well, there are always tradeoffs. You could choose to run with a
> non-infinite setting of lock_timeout, which would have caused the DROP to
> fail after waiting a second or two (or whatever you set the timeout to
> be). That would move the denial of service over to the problematic DDL,
> which might be a good tradeoff for your environment. But not everybody is
> going to think that query failure is a "more graceful" solution.
Thank you! lock_timeout sounds like exactly what I need to set - thank you for
helping out.
Now I know about lock_timeout I agree, there's nothing worth changing here.
Postgres already has the tools built in to allow me to get the behaviour I
wanted in this sitution.
Thank you for your patient explanations.
David
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: dwaller@yammer-inc.com, tgl@sss.pgh.pa.us
Subject: Re: BUG #14237: Terrible performance after accidentally running 'drop index' for index still being created
In-Reply-To: <906C6061-69F6-44B9-9CC9-40281E3F27D6@microsoft.com>
References: <20160708102407.1409.87848@wrigleys.postgresql.org> <11675.1467990502@sss.pgh.pa.us> <6A9A127D-FE6F-422D-BE82-B8154757367F@microsoft.com> <24589.1468256920@sss.pgh.pa.us> <906C6061-69F6-44B9-9CC9-40281E3F27D6@microsoft.com>
* 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