Thread: Re: [HACKERS] ACCESS EXCLUSIVE LOCK

Re: [HACKERS] ACCESS EXCLUSIVE LOCK

From
"Jim C. Nasby"
Date:
On Fri, Mar 03, 2006 at 08:00:19PM -0700, Michael Fuhr wrote:
> On Fri, Mar 03, 2006 at 08:47:41PM -0600, Jim C. Nasby wrote:
> > You have a URL for where in the docs it says that? Sounds like it needs
> > to be updated to include TRUNCATE.
>
> http://www.postgresql.org/docs/7.4/static/explicit-locking.html#LOCKING-TABLES
>
> It doesn't say that only the listed commands acquire ACCESS EXCLUSIVE,
> just that certain commands do.  TRUNCATE isn't shown.

Patch against HEAD to add TRUNCATE to the list of commands that aquire
ACCESS EXCLUSIVE.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

Attachment

Re: [HACKERS] ACCESS EXCLUSIVE LOCK

From
Bruce Momjian
Date:
Patch applied.  Thanks.  Your documentation changes can be viewed in
five minutes using links on the developer's page,
http://www.postgresql.org/developer/testing.


---------------------------------------------------------------------------


Jim C. Nasby wrote:
> On Fri, Mar 03, 2006 at 08:00:19PM -0700, Michael Fuhr wrote:
> > On Fri, Mar 03, 2006 at 08:47:41PM -0600, Jim C. Nasby wrote:
> > > You have a URL for where in the docs it says that? Sounds like it needs
> > > to be updated to include TRUNCATE.
> >
> > http://www.postgresql.org/docs/7.4/static/explicit-locking.html#LOCKING-TABLES
> >
> > It doesn't say that only the listed commands acquire ACCESS EXCLUSIVE,
> > just that certain commands do.  TRUNCATE isn't shown.
>
> Patch against HEAD to add TRUNCATE to the list of commands that aquire
> ACCESS EXCLUSIVE.
> --
> Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
> Pervasive Software      http://pervasive.com    work: 512-231-6117
> vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings

--
  Bruce Momjian   http://candle.pha.pa.us
  SRA OSS, Inc.   http://www.sraoss.com

  + If your life is a hard drive, Christ can be your backup. +