autovacuum launcher using InitPostgres - Mailing list pgsql-hackers

From Alvaro Herrera
Subject autovacuum launcher using InitPostgres
Date
Msg-id 20090831150525.GD6060@alvh.no-ip.org
Whole thread Raw
Responses Re: autovacuum launcher using InitPostgres  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: autovacuum launcher using InitPostgres  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: set_client_encoding is broken
Next
From: Robert Haas
Date:
Subject: Re: Feature request : add REMAP_SCHEMA-like option to pg_restore