pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Michael Fuhr <mike@fuhr.org>
To: Eugene E. <sad@bankir.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: what is going on in the PostgreSQL
Date: Wed, 23 Nov 2005 11:09:58 -0700
Message-ID: <20051123180957.GA3907@winnie.fuhr.org> (raw)
In-Reply-To: <43845873.1030607@bankir.ru>
References: <Pine.LNX.4.44.0507280919020.4325-100000@matrix.gatewaynet.com>
<43845873.1030607@bankir.ru>
On Wed, Nov 23, 2005 at 02:54:27PM +0300, Eugene E. wrote:
> template1=> \set a select
> template1=> \set b 1
> template1=> :a :b;
>
> column
> ------
> 1
>
> hope this is only psql's feathure not the server's one;
What about this do you find surprising? Have you read the psql
documentation regarding \set, variables, and interpolation?
http://www.postgresql.org/docs/8.1/interactive/app-psql.html#APP-PSQL-VARIABLES
test=> \set a select
test=> \set b 1
test=> \set ECHO queries
test=> :a :b;
select 1;
?column?
----------
1
(1 row)
--
Michael Fuhr
view thread (2+ messages)
Message-ID: <20051123180957.GA3907@winnie.fuhr.org> Permalink: ../20051123180957.GA3907@winnie.fuhr.org/ Also on: postgresql.org/message-id/20051123180957.GA3907@winnie.fuhr.org ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: mike@fuhr.org, sad@bankir.ru Subject: Re: what is going on in the PostgreSQL In-Reply-To: <20051123180957.GA3907@winnie.fuhr.org> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox