From: Bruce Momjian <bruce@momjian.us>
To: postgresql.org@ch.pkts.ca
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #10052: COPY (...) TO 'file' doesn't create file
Date: Wed, 16 Apr 2014 14:28:51 -0400
Message-ID: <20140416182851.GH7443@momjian.us> (raw)
In-Reply-To: <20140416175436.17202.83628@wrigleys.postgresql.org>
References: <20140416175436.17202.83628@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Wed, Apr 16, 2014 at 05:54:36PM +0000, postgresql.org@ch.pkts.ca wrote:
> The following bug has been logged on the website:
>
> Bug reference: 10052
> Logged by: PFudd
> Email address: postgresql.org@ch.pkts.ca
> PostgreSQL version: 9.2.8
> Operating system: CentOS 6.5
> Description:
>
> In psql, this command works:
> # copy (select * from history) to STDOUT;
> It prints 957 lines to stdout.
>
> However, if I do:
> # copy (select * from history) to '/tmp/foo.txt';
> it prints
> COPY 957
> but doesn't create the file /tmp/foo.txt.
Uh, you realize that is a file on the server, not on the client. You
might want to try psql's \copy.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ Everyone has their own god. +
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: bruce@momjian.us, postgresql.org@ch.pkts.ca
Subject: Re: BUG #10052: COPY (...) TO 'file' doesn't create file
In-Reply-To: <20140416182851.GH7443@momjian.us>
References: <20140416175436.17202.83628@wrigleys.postgresql.org> <20140416182851.GH7443@momjian.us>
* 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