Re: [HACKERS] PSQL commands: \quit_if, \quit_unless
От
Robert Haas
Тема
Re: [HACKERS] PSQL commands: \quit_if, \quit_unless
Дата
Msg-id
CA+TgmoYju6qhvKf4rZ8mxp5p63uFCwMturHorj8razmMxf8rcg@mail.gmail.com
Ответ на
Список
Дерево обсуждения
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>
On Sat, Jan 14, 2017 at 12:22 AM, Tom Lane wrote: > > $ cat loop.sql > \if :x < 1000 > \echo :x > \set x :x + 1 > \include loop.sql > \fi > $ psql --set x=0 -f loop.sql > > Somebody is going to think of that workaround for not having loops, and > then whine about how psql runs out of file descriptors and/or stack. Hmm, I think somebody just DID think of it. But personally this doesn't upset me a bit. If somebody complains about that particular thing, I think that would be an excellent time to suggest that they write a patch to add a looping construct. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления
От: Robert Haas
Дата:
От: Tom Lane
Дата: