Re: Directly embedding a psql SET variable inside another string? - Mailing list pgsql-general

From David G. Johnston
Subject Re: Directly embedding a psql SET variable inside another string?
Date
Msg-id CAKFQuwYNRU3J9EbZD8dyxt0aJ_CPnsdLMhv89Wj5O6joO4Ujqw@mail.gmail.com
Whole thread Raw
In response to Re: Directly embedding a psql SET variable inside another string?  (Adam Scott <adam.c.scott@gmail.com>)
List pgsql-general
Please don't top-post.

On Fri, Jan 13, 2023 at 10:08 AM Adam Scott <adam.c.scott@gmail.com> wrote:
Do you mean like this?

postgres=# \set v_embed %:v_ssn%
postgres=# \echo :v_embed
 
test=# \set v_like %:v_ssn%
test=# \echo :v_like


Aside from the names those look identical...

David J.

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Directly embedding a psql SET variable inside another string?
Next
From: Ron
Date:
Subject: Re: Directly embedding a psql SET variable inside another string?