Re: Add a new backend process

From: Florian Pflug <fgp(at)phlo(dot)org>
To: Amir Abdollahi <amirabd2130(at)yahoo(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Add a new backend process
Date: 2010-06-16 10:41:24
Message-ID: D2308154-1EE8-400D-A737-F28AE9B42274@phlo.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 the database, ...) to your requirements. Pick the best-matching candidate and start by copying what it does.

best regards,
Florian Pflug

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2010-06-16 11:05:21 Re: ANNOUNCE list (was Re: New PGXN Extension site)
Previous Message Dave Page 2010-06-16 10:37:29 Re: New PGXN Extension site