Re: where EXEC_BACKEND?

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: abdelhak benmohamed <abdelhak(dot)benmohamed(at)yahoo(dot)fr>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: where EXEC_BACKEND?
Date: 2009-05-16 18:53:16
Message-ID: 20090516185316.GA11658@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dickson S. Guedes 2009-05-17 02:10:20 generate_series from now to infinity...
Previous Message Andrew Dunstan 2009-05-16 18:51:17 Re: where EXEC_BACKEND?