pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: pgsql-bugs@postgresql.org
Subject: psql's \copy incompatible with :variables
Date: Tue, 07 Jun 2011 17:22:23 -0700
Message-ID: <4DEEC0BF.7030105@agliodbs.com> (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 Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



view thread (7+ messages)  latest in thread

Message-ID: <4DEEC0BF.7030105@agliodbs.com>
Permalink:  ../4DEEC0BF.7030105@agliodbs.com/
Also on:    postgresql.org/message-id/4DEEC0BF.7030105@agliodbs.com

 · 

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 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
  Subject: Re: psql's \copy incompatible with :variables
  In-Reply-To: <4DEEC0BF.7030105@agliodbs.com>
  References: <4DEEC0BF.7030105@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