psql's \copy incompatible with :variables - Mailing list pgsql-bugs

From Josh Berkus
Subject psql's \copy incompatible with :variables
Date
Msg-id 4DEEC0BF.7030105@agliodbs.com
Whole thread Raw
Responses Re: psql's \copy incompatible with :variables
List pgsql-bugs
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

pgsql-bugs by date:

Previous
From: Robert Haas
Date:
Subject: Re: BUG #6041: Unlogged table was created bad in slave node
Next
From: Robert Haas
Date:
Subject: Re: BUG #6041: Unlogged table was created bad in slave node