Re: PSQL commands: \quit_if, \quit_unless
От
Corey Huinker
Тема
Re: PSQL commands: \quit_if, \quit_unless
Дата
Msg-id
CADkLM=eF-269H=k_UGGQ6xCEcECr+PV+Cq_49vBdLHJCZj_HWA@mail.gmail.com
Ответ на
Re: PSQL commands: \quit_if, \quit_unless (David G. Johnston)
Список
Дерево обсуждения
PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Tom Lane <tgl@sss.pgh.pa.us>
Re: PSQL commands: \quit_if, \quit_unless "David G. Johnston" <david.g.johnston@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Andrew Dunstan <andrew@dunslane.net>
Re: PSQL commands: \quit_if, \quit_unless Tom Lane <tgl@sss.pgh.pa.us>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless David Fetter <david@fetter.org>
Re: PSQL commands: \quit_if, \quit_unless Tom Lane <tgl@sss.pgh.pa.us>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Andrew Dunstan <andrew@dunslane.net>
Re: PSQL commands: \quit_if, \quit_unless David Steele <david@pgmasters.net>
Re: PSQL commands: \quit_if, \quit_unless Andrew Dunstan <andrew@dunslane.net>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Andrew Dunstan <andrew@dunslane.net>
Re: PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Tom Lane <tgl@sss.pgh.pa.us>
Re: PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Tom Lane <tgl@sss.pgh.pa.us>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Alvaro Herrera <alvherre@2ndquadrant.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Corey Huinker <corey.huinker@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless "David G. Johnston" <david.g.johnston@gmail.com>
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Fabien COELHO <coelho@cri.ensmp.fr>
Re: PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Robert Haas <robertmhaas@gmail.com>
Re: PSQL commands: \quit_if, \quit_unless Jim Nasby <Jim.Nasby@BlueTreble.com>
Re: PSQL commands: \quit_if, \quit_unless Pavel Stehule <pavel.stehule@gmail.com>
As far as the original problem goes, I wonder whether what you really
want isn't a \quit command that lets you specify psql's exit code.
The ability to specify an exit code was part of the brainstorming, yes. But with it was the ability to conditionally quit.
Actually, I'm seeing this as basically an assertion capability and maybe should be named as such\assert_is\assert_isnot
That came up too! I see real value in the ability to test for error conditions. I just had a more immediate need for a non-error exit condition.
В списке pgsql-hackers по дате отправления