[HACKERS] where EXEC_BACKEND?

2009-05-16 Thread abdelhak benmohamed
hi,

actually i try to execute postgres step by step (on paper)
i don't retreive where EXEC_BACKEND is initialized
can any one help me?
it is very important for me

thanks



  

Re: [HACKERS] where EXEC_BACKEND?

2009-05-16 Thread Andrew Dunstan



abdelhak benmohamed wrote:

hi,

actually i try to execute postgres step by step (on paper)
i don't retreive where EXEC_BACKEND is initialized
can any one help me?
it is very important for me

thanks




normally it is added to the CPP_FLAGS by configure, if needed (i.e. for 
the Windows gcc build), or by the Project (for the MSVC build).


It's not defined in any include file.

On Unix it is only ever used to test the way the Windows port works, and 
then you have to define it manually, e.g. by passing it in to configure 
via preset CPP_FLAGS. Standard Unix builds don't work this way.



cheers

andrew

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


Re: [HACKERS] where EXEC_BACKEND?

2009-05-16 Thread Alvaro Herrera
abdelhak benmohamed wrote:
 hi,
 
 actually i try to execute postgres step by step (on paper)
 i don't retreive where EXEC_BACKEND is initialized
 can any one help me?
 it is very important for me

Nowhere.  If you want it, you have to define it manually in
pg_config_manual.h.

EXEC_BACKEND is a source code hack that allows the Unix build (which
normally uses only fork() without exec()) to follow the same startup
code as the Windows version (which uses CreateProcess(), equivalent to
both fork() and exec()), allowing for better debuggability for those of
us that do not use Windows.

If you want to follow postmaster initialization on a POSIX platform,
it's easier if you just assume that EXEC_BACKEND is not defined.

-- 
Alvaro Herrerahttp://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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