| От | Tom Lane |
|---|---|
| Тема | Re: Command line argument for Server |
| Дата | |
| Msg-id | 11942.1395668496@sss.pgh.pa.us обсуждение |
| Ответ на | Command line argument for Server (Swapnil Bhoite <swapnil.temp28@gmail.com>) |
| Список | pgsql-hackers |
Swapnil Bhoite <swapnil.temp28@gmail.com> writes:
> 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*?
Forget about inventing your own flag mechanism. Create a new GUC
parameter instead: there is lots and lots of existing infrastructure
you won't have to reinvent.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера