Re: pgbench - test whether a variable exists

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgbench - test whether a variable exists
Date: 2018-03-24 09:22:14
Message-ID: alpine.DEB.2.20.1803241021190.13537@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> 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.

Patch v2 is a rebase.


Attachment Content-Type Size
pgbench-var-exists-2.patch text/plain 4.9 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2018-03-24 09:25:54 Re: [HACKERS] pgbench - allow to store select results into variables
Previous Message Fabien COELHO 2018-03-24 09:18:32 Re: pgbench randomness initialization