autovacuum launcher using InitPostgres

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: autovacuum launcher using InitPostgres
Date: 2009-08-31 15:05:25
Message-ID: 20090831150525.GD6060@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

This seems to be the last holdup for flatfiles.c. This patch removes
usage of that code in autovacuum launcher, instead making it go through
the most basic relcache initialization so that it is able to read
pg_database.

To this end, InitPostgres has been split in two. The launcher only
calls the first half, the rest of the callers have been patched to
invoke the second half.

The only thing I'm aware is missing from this patch is fixing up
avlauncher's signal handling, and adding a bit more commentary; also I
haven't tested it under EXEC_BACKEND yet.

Comments?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

Attachment Content-Type Size
avlauncher-proc.patch text/x-diff 23.0 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-08-31 15:06:43 Re: Feature request : add REMAP_SCHEMA-like option to pg_restore
Previous Message Tom Lane 2009-08-31 15:00:50 Re: set_client_encoding is broken