Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7A6B7B5DC29 for ; Fri, 14 Oct 2011 14:20:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 60967-02-9 for ; Fri, 14 Oct 2011 17:20:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from smtp-out-2.01.com (smtp.01.com [216.115.88.169]) by mail.postgresql.org (Postfix) with ESMTP id A4E95B5DCEE for ; Fri, 14 Oct 2011 14:15:37 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 4FCFA4140CA for ; Fri, 14 Oct 2011 12:15:37 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp-out-2.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SA8g5x8U3eJb for ; Fri, 14 Oct 2011 12:15:37 -0500 (CDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 27CF4414099 for ; Fri, 14 Oct 2011 12:15:37 -0500 (CDT) Received: from Sidney-Stratton.local (70-36-143-92.dsl.dynamic.sonic.net [70.36.143.92]) by smtp-out-2.01.com (Postfix) with ESMTPSA id E6A5F41402D; Fri, 14 Oct 2011 12:15:36 -0500 (CDT) Message-ID: <4E986E38.2030505@agliodbs.com> Date: Fri, 14 Oct 2011 10:15:36 -0700 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 MIME-Version: 1.0 To: Tom Lane CC: Bruce Momjian , pgsql-bugs@postgresql.org Subject: Re: psql's \copy incompatible with :variables References: <201110140139.p9E1dHN00659@momjian.us> <11634.1318558241@sss.pgh.pa.us> In-Reply-To: <11634.1318558241@sss.pgh.pa.us> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201110/121 X-Sequence-Number: 31391 > \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