| From: | Simon Riggs <simon(at)2ndQuadrant(dot)com> | 
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org | 
| Subject: | Re: ALTER TABLE SET STATISTICS requires AccessExclusiveLock | 
| Date: | 2010-07-15 09:24:27 | 
| Message-ID: | 1279185867.1735.7463.camel@ebony | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Thu, 2010-07-08 at 07:16 +0100, Simon Riggs wrote:
> I'll take my previous patch through to completion now
Patch to reduce lock levels for 
 ALTER TABLE
 CREATE TRIGGER
 CREATE RULE
I've completely re-analyzed the required lock levels for sub-commands,
so lock levels can now also be these, if appropriate.
 ShareUpdateExclusiveLock - allows db reads and writes
 ShareRowExclusiveLock - allows db reads only
When ALTER TABLE is specified with multiple subcommands the highest lock
level required by any subcommand is applied to the whole combined
command.
The lock levels are in many ways different from both my own earlier
patch and much of the discussion on this thread, which I have taken to
be general comments rather than considered thought.
Nothing much speculative here, so will commit in a few days barring
objections.
-- 
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Development, 24x7 Support, Training and Services
| Attachment | Content-Type | Size | 
|---|---|---|
| ddl_lock_reduce.v9.patch | text/x-patch | 46.9 KB | 
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Hans-Jürgen Schönig | 2010-07-15 10:04:21 | Re: cross column correlation revisted | 
| Previous Message | Peter Eisentraut | 2010-07-15 08:44:26 | Re: Per-column collation, proof of concept |