Skip site navigation (1) Skip section navigation (2)

vacuum as flags in PGPROC

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: vacuum as flags in PGPROC
Date: 2007-10-23 21:45:51
Message-ID: 20071023214551.GW18013@alvh.no-ip.org (view raw or flat)
Thread:
Lists: pgsql-patches
In the spirit of incremental improvement, here is a patch that turns the
couple of bools in PGPROC into a bitmask, and associated fallout.

This patch also contains a change to make a cancelled autovacuum
continue with the schedule (indeed to continue with the schedule on any
error), rather than aborting completely.

My idea is to add a flag for "analyze" and another for "is for xid
wraparound", and to build on that for the cancel-autovac-on-deadlock-
checker project, as submitted by Simon.

-- 
Alvaro Herrera       Valdivia, Chile   ICBM: S 39º 49' 18.1", W 73º 13' 56.4"
"El sudor es la mejor cura para un pensamiento enfermo" (Bardia)

Attachment: pgproc-vacuum-flags.patch
Description: text/x-diff (22.2 KB)

Responses

pgsql-patches by date

Next:From: Pavel StehuleDate: 2007-10-23 21:57:29
Subject: Re: EXECUTE USING for plpgsql (for 8.4)
Previous:From: Tom LaneDate: 2007-10-23 21:40:37
Subject: Re: uuid.h on Debian

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group