X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C87B3D904F for ; Wed, 19 Oct 2005 02:45:41 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 30211-10 for ; Wed, 19 Oct 2005 05:45:38 +0000 (GMT) Received: from moon.antora.ru (moon.antora.ru [83.222.21.34]) by svr1.postgresql.org (Postfix) with ESMTP id C0DB7D6FD9 for ; Wed, 19 Oct 2005 02:45:38 -0300 (ADT) Received: from [217.26.17.26] (helo=[10.0.0.72]) by moon.antora.ru with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.51 (FreeBSD)) id 1ES6ld-000AkP-Hw; Wed, 19 Oct 2005 09:45:37 +0400 Message-ID: <4355DC74.6020006@bankir.ru> Date: Wed, 19 Oct 2005 09:41:08 +0400 From: "Eugene E." User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050517) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Judith Altamirano Figueroa Cc: pgsql-sql@postgresql.org Subject: Re: query to file References: <1129676639.3523.19.camel@Desarrollo> In-Reply-To: <1129676639.3523.19.camel@Desarrollo> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.046 required=5 tests=[AWL=0.046] X-Spam-Level: X-Archive-Number: 200510/210 X-Sequence-Number: 23063 Judith Altamirano Figueroa wrote: > Excuse me, how can I send a query to a file?, for example the result of > this query: > > select id_articulo, articulo, color_code from articulos; if you mean psql \o filename and try to read output of a command \?