From: Josh Berkus <josh@agliodbs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: psql's \copy incompatible with :variables
Date: Fri, 14 Oct 2011 10:15:36 -0700
Message-ID: <4E986E38.2030505@agliodbs.com> (raw)
In-Reply-To: <11634.1318558241@sss.pgh.pa.us>
References: <201110140139.p9E1dHN00659@momjian.us>
<11634.1318558241@sss.pgh.pa.us>
> \copy is different because it uses OT_WHOLE_LINE mode to read the
> argument, and that doesn't expand :variable references. I'd be a bit
> leery of changing that.
So, doc warning then?
--
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: josh@agliodbs.com, tgl@sss.pgh.pa.us, bruce@momjian.us
Subject: Re: psql's \copy incompatible with :variables
In-Reply-To: <4E986E38.2030505@agliodbs.com>
References: <201110140139.p9E1dHN00659@momjian.us> <11634.1318558241@sss.pgh.pa.us> <4E986E38.2030505@agliodbs.com>
* 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