Re: PSQL commands: \quit_if, \quit_unless - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: PSQL commands: \quit_if, \quit_unless
Date
Msg-id alpine.DEB.2.20.1612061616250.16863@lancre
Whole thread Raw
In response to Re: PSQL commands: \quit_if, \quit_unless  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
> But if it does make sense to share, then that's another reason for not 
> designing something ad-hoc for psql: integrating it later will be more 
> work in total.

Yes, but not much: evaluating "[!] :var" special syntax would be dropped, 
but I do not think that it is the main issue with these features.

I understand that your conclusion is to require psql expressions + 
conditions as one (large) patch.

Given my personnal experience with the patch process, my conclusion is 
that I will very probably not do it. Just adding logical expressions to 
pgbench, a minor feature for a minor client, has already been spread over 
3 CF, and this is a part of what is required for the condition & 
expression in psql.

Hopefully someone else will do it, and I'll do some reviewing then.

-- 
Fabien.



pgsql-hackers by date:

Previous
From: Vladimir Borodin
Date:
Subject: tzdata 2016j
Next
From: Tom Lane
Date:
Subject: Re: tzdata 2016j