Re: [HACKERS] \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless)

Поиск
Список
Период
Сортировка
От Corey Huinker
Тема Re: [HACKERS] \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if, \quit_unless)
Дата
Msg-id CADkLM=fj9EOqCB89nJ7Qm9OKdrF9xL0qqaRq3VFa5=vO4faUzg@mail.gmail.com
обсуждение исходный текст
Ответ на [HACKERS] Re: \if, \elseif, \else, \endif (was Re: PSQL commands: \quit_if,\quit_unless)  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: [HACKERS] \if, \elseif, \else, \endif (was Re: PSQL commands:\quit_if, \quit_unless)  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Maybe this can be a discussed in a follow-up patch and Corey should proceed to finalize the if patch?

In the event that we can leave prompting to a later patch, here are the v12 highlights:
- created conditional.h and conditional.c which contain the functions with stack-ish push/pop/peek/poke names
- now all non-test, non-doc changes are in src/bin/psql
- moved conditional stack out of scan_state, stack state maintained by mainloop.c/startup.c, passed to HandleSlashCommands
- documentation encourages the user to employ ON_ERROR_STOP when using conditionals
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Rey
Дата:
Сообщение: [HACKERS] About pg_dump and recover
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: [HACKERS] Commit fest 2017-01 will begin soon!