Command line argument for Server

From: Swapnil Bhoite <swapnil(dot)temp28(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Command line argument for Server
Date: 2014-03-24 13:08:38
Message-ID: CAEofXZ4Tok-A4B6QBW8DDVZ6qA=nDUfy2USEK8UC7NEiqk501A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I want to set or reset a global flag.
1) What currently I'm thinking is, I'll declare that global flag in
*postgres.h*
2) I'll set that depending on my custom flag given at server startup
3) I encountered function *getopt* but I couldn't understand it

So my question is how should I process command line argument for server?
Or is there any another way to do so using *postgresql.conf*?

Thank you,
Swapnil

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-03-24 13:41:36 Re: Command line argument for Server
Previous Message Fujii Masao 2014-03-24 12:51:07 Re: Patch for CREATE RULE sgml -- Was in: [DOCS]