Re: Exclusive lock for database rename - Mailing list pgsql-hackers

From Jochem van Dieten
Subject Re: Exclusive lock for database rename
Date
Msg-id f96a9b830511050147t312dda77p5e4fb9cc4ed94673@mail.gmail.com
Whole thread Raw
In response to Re: Exclusive lock for database rename  ("Jim C. Nasby" <jnasby@pervasive.com>)
Responses Re: Exclusive lock for database rename  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
On 11/4/05, Jim C. Nasby wrote:
>
> I would argue that in cases like this (and 'this' means just about any
> DDL, for starters) that it would be better not to block everyone until
> work can actually be done. Or at least make that an option.

Would it be possible to simulate this by manually trying to grab a
lock on a relation using NOWAIT in a loop or are the locks DDL
requires different from the ones acquired by the LOCK statement?

Jochem

pgsql-hackers by date:

Previous
From: jtv@xs4all.nl
Date:
Subject: Old interfaces directory in CVS tree?
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Reducing the overhead of NUMERIC data