[HACKERS] Add a new backend process

2010-06-16 Thread Amir Abdollahi
Hello,

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!
Sorry if this is very general question!

I 
didn't find any source to learn these things in postgres.

thanks 
in advance





  

Re: [HACKERS] Add a new backend process

2010-06-16 Thread Florian Pflug
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


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers