Re: [HACKERS] Global flag

2014-03-24 Thread Craig Ringer
On 03/24/2014 05:53 PM, Swapnil Bhoite wrote: > Hi, > > I want to set a *global flag* with which I can decide whether to use my > code or not > in modified source code. > How I can do that? Please reply to existing mailing list threads. Don't make a new message for every post. It's confusing and

Re: [HACKERS] Global flag

2014-03-24 Thread Jeff Janes
On Mon, Mar 24, 2014 at 2:53 AM, Swapnil Bhoite wrote: > Hi, > > I want to set a *global flag* with which I can decide whether to use my > code or not > in modified source code. > How I can do that? > edit src/backend/utils/misc/guc.c to add an external variable declaration near "XXX these should

Re: [HACKERS] Global flag

2014-03-24 Thread Craig Ringer
On 03/24/2014 06:28 PM, Rajashree Mandaogane wrote: > I need to set a global flag in such a way that only if the flag is on > then my modified code will get executed, so how can I do that? PostgreSQL is single-threaded, multi-processing. So if you need to set this flag only within a given backend,

[HACKERS] Global flag

2014-03-24 Thread Rajashree Mandaogane
I need to set a global flag in such a way that only if the flag is on then my modified code will get executed, so how can I do that? Thank you.

[HACKERS] Global flag

2014-03-24 Thread Swapnil Bhoite
Hi, I want to set a *global flag* with which I can decide whether to use my code or not in modified source code. How I can do that? Thank you -Swapnil