Re: Add a new backend process - Mailing list pgsql-hackers

From Florian Pflug
Subject Re: Add a new backend process
Date
Msg-id D2308154-1EE8-400D-A737-F28AE9B42274@phlo.org
Whole thread Raw
In response to Add a new backend process  (Amir Abdollahi <amirabd2130@yahoo.com>)
List pgsql-hackers
On Jun 16, 2010, at 8:47 , Amir Abdollahi wrote:
> I want to add a new backend process to postgres, to include my own auditing modules.
> How can i do that, also how can i signal it after!

The existing auxiliary processes (in 8.4) and their entry points are
autovacuum  (autovacuum.c, AutoVacLauncherMain)
bgwriter (bgwriter.c, BackgroundWriterMain)
walwriter (walwriter.c, WalWriterMain)
startup/recovery (xlog.c, StartupProcessMain)

You should probably compare the characteristics of these processes (when are they launched, how do they interface with
thedatabase, ...) to your requirements. Pick the best-matching candidate and start by copying what it does. 

best regards,
Florian Pflug



pgsql-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: New PGXN Extension site
Next
From: Magnus Hagander
Date:
Subject: Re: ANNOUNCE list (was Re: New PGXN Extension site)