Unix Technical Forum

Re: PATCH to allow concurrent VACUUMs to not lock each

This is a discussion on Re: PATCH to allow concurrent VACUUMs to not lock each within the Pgsql Patches forums, part of the PostgreSQL category; --> On K, 2005-05-18 at 11:54 +0300, Hannu Krosing wrote: > The attached patch allows VACUUMS's on small relations to ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Patches

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 12:21 AM
Hannu Krosing
 
Posts: n/a
Default Re: PATCH to allow concurrent VACUUMs to not lock each

On K, 2005-05-18 at 11:54 +0300, Hannu Krosing wrote:
> The attached patch allows VACUUMS's on small relations to clean up dead
> tuples while VACUUM or ANALYSE is running for a long time on some big
> table.
>
> This is done by adding a "bool inVacuum" to PGPROC and then making use
> of it in GetOldestXmin.
>
> This patch is against current CVS head, but should also apply to 8.0.2
> with minorpach warnings.


Could this patch be applied (or rejected if something is badly wrong
with it) ?

Or should I move the discussion back to pgsql-hackers ad try to make it
a TODO first ?

This patch implements what I described in
http://archives.postgresql.org/pgsql...5/msg00704.php
plus a small change to make it work for simple ANALYSE too.

--
Hannu Krosing <hannu@skype.net>


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 12:21 AM
Bruce Momjian
 
Posts: n/a
Default Re: PATCH to allow concurrent VACUUMs to not lock each other

Hannu Krosing wrote:
> On K, 2005-05-18 at 11:54 +0300, Hannu Krosing wrote:
> > The attached patch allows VACUUMS's on small relations to clean up dead
> > tuples while VACUUM or ANALYSE is running for a long time on some big
> > table.
> >
> > This is done by adding a "bool inVacuum" to PGPROC and then making use
> > of it in GetOldestXmin.
> >
> > This patch is against current CVS head, but should also apply to 8.0.2
> > with minorpach warnings.

>
> Could this patch be applied (or rejected if something is badly wrong
> with it) ?
>
> Or should I move the discussion back to pgsql-hackers ad try to make it
> a TODO first ?
>
> This patch implements what I described in
> http://archives.postgresql.org/pgsql...5/msg00704.php
> plus a small change to make it work for simple ANALYSE too.


I have it in my mailbox and will get to it. Thanks.

--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:21 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com