Re: Variable substitution in psql backtick expansion

From: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
To: Daniel Verite <daniel(at)manitou-mail(dot)org>
Cc: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Variable substitution in psql backtick expansion
Date: 2017-04-03 20:35:18
Message-ID: CADkLM=f9GrJ=3QX_B_2g1VqvkSr7jxZqiFzi3AyJGT5NxCENyg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> I assume we want to keep that pre-existing behavior of \set in
> psql, that is, making a copy of that string and associating a
> name to it, whereas I guess pgbench computes a value from it and
> stores that value.
>

Maybe a \set-variant called \expr?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2017-04-03 21:04:09 Re: [PATCH] Incremental sort
Previous Message Kevin Grittner 2017-04-03 20:34:17 Re: SERIALIZABLE with parallel query