Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRkCa-0006Tb-Oc for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2013 14:48:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VRkCa-0000hC-4P for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2013 14:48:28 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRkCY-0000h3-Oa for pgsql-general@postgresql.org; Thu, 03 Oct 2013 14:48:26 +0000 Received: from 229.red-80-34-184.staticip.rima-tde.net ([80.34.184.229] helo=mailserver.incofisa.biz) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRkCR-0003rk-El for pgsql-general@postgresql.org; Thu, 03 Oct 2013 14:48:25 +0000 Received: from localhost (localhost.incofisa.biz [127.0.0.1]) by mailserver.incofisa.biz (Postfix) with ESMTP id 2D54E73; Thu, 3 Oct 2013 16:48:18 +0200 (CEST) Received: from mailserver.incofisa.biz ([127.0.0.1]) by localhost (mailserver.incofisa.biz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 73184-02; Thu, 3 Oct 2013 16:48:18 +0200 (CEST) Received: from www.grupoincofisa.com (unknown [192.168.1.113]) by mailserver.incofisa.biz (Postfix) with ESMTP id 020C06D; Thu, 3 Oct 2013 16:48:17 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 03 Oct 2013 16:48:14 +0200 From: =?UTF-8?Q?Sime=C3=B3_Reig?= To: Adrian Klaver Cc: Subject: Re: pgbench In-Reply-To: <524D81EA.8050300@gmail.com> References: <524D7668.4050301@gmail.com> <57c75d91fcc3d9ccc3a928548b6d24a9@mailserver.grupoincofisa.com> <524D7C54.8070701@gmail.com> <63b31800c1e05f7d999f2e40a03b72dd@mailserver.grupoincofisa.com> <524D81EA.8050300@gmail.com> Message-ID: <5c001cb752c6d678fda4f3a42eebc178@mailserver.grupoincofisa.com> X-Sender: simeo.reig@grupoincofisa.com User-Agent: Incofisa Webmail/0.8.6 X-Virus-Scanned: by amavisd-new at incofisa.biz X-Pg-Spam-Score: -0.0 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org A 2013-10-03 16:40, Adrian Klaver escrigué: > On 10/03/2013 07:23 AM, Simeó Reig wrote: > >>> >>> You have not shown the query, but could you be running into the >>> belwo: >>> >>> http://www.postgresql.org/docs/9.3/interactive/pgbench.html >>> >>> "The format of a script file is one SQL command per line; multiline >>> SQL commands are not supported. Empty lines and lines beginning with >>> -- are ignored. Script file lines can also be "meta commands", which >>> are interpreted by pgbench itself, as described below." >>> >> >> >> I did it, and I read it all ... I'm use to work with postgresql and >> freeBSD world since too years ago ;-) > > > Obviously pgbench has issues with the syntax in the file. Without the > contents of the file I am just doing some educated guessing. To get to > a solution you will need to show your custom file. Yes you are right, It has an issue with the syntax, because it only reads a portion of the query, and obviously it's not correct if you do it. Unfortunately I can't put the sql here, but I repeat: I could do: psql -d databasename > scrip_file.sql and it works perfectly, and It is a one line query. I did it with many queries since today, but I think this is too long Many many thanks for your interest Adrian Simeó Reig Barcelona (Spain) -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general