From: The Fuzzy Chef <fuzzy@fuzzychef.org>
To: pgsql-bugs@postgresql.org
Subject: psql's \copy incompatible with :variables
Date: Tue, 07 Jun 2011 16:18:40 -0700
Message-ID: <4DEEB1D0.4080503@fuzzychef.org> (raw)
Summary: \copy interprets psql's :variables as literal strings
Tested On: 8.4.4, 9.0.4
Severity: Annoyance
Steps to Reproduce:
psql
\set filename 'test.csv'
\copy pg_class to :filename with csv
\q
ls
:filename
Note that psql variables work perfectly fine with COPY. It's just \copy
which seems to be misbehaving.
--Josh
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: fuzzy@fuzzychef.org
Subject: Re: psql's \copy incompatible with :variables
In-Reply-To: <4DEEB1D0.4080503@fuzzychef.org>
References: <4DEEB1D0.4080503@fuzzychef.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