Re: psql's \copy incompatible with :variables

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: psql's \copy incompatible with :variables
Date: 2011-10-14 18:54:41
Message-ID: 201110141854.p9EIsf524389@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Josh Berkus wrote:
>
> > \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?

I don't think enough people have hit this problem to warrant that.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message stephen 2011-10-15 03:21:58 BUG #6255: Unable to Install (Binary, One Click Installer
Previous Message Josh Berkus 2011-10-14 17:15:36 Re: psql's \copy incompatible with :variables