pgbench - test whether a variable exists - Mailing list pgsql-hackers

From Fabien COELHO
Subject pgbench - test whether a variable exists
Date
Msg-id alpine.DEB.2.20.1802191909500.21372@lancre
Whole thread Raw
Responses Re: pgbench - test whether a variable exists  (Andres Freund <andres@anarazel.de>)
Re: pgbench - test whether a variable exists  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: pgbench - test whether a variable exists  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Hello devs,

While investigating moving pgbench expressions to fe_utils so that they 
can be shared with psql (\if ..., \let ?), I figure out that psql's \if 
has a syntax to test whether a variable exists, which is not yet available 
to pgbench.

This patch adds the same syntax to pgbench expression so that they can 
represent this expression, already accepted by psql's \if.

Note that it is not really that useful for benchmarking, although it does 
not harm.

-- 
Fabien.
Attachment

pgsql-hackers by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: unique indexes on partitioned tables
Next
From: Alvaro Herrera
Date:
Subject: Re: unique indexes on partitioned tables