Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjdQ-00050l-3v for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2013 14:12:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VRjdP-00023w-HZ for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2013 14:12:07 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjdN-00021X-8v for pgsql-general@postgresql.org; Thu, 03 Oct 2013 14:12:05 +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 1VRjdG-0003BK-F9 for pgsql-general@postgresql.org; Thu, 03 Oct 2013 14:12:04 +0000 Received: from localhost (localhost.incofisa.biz [127.0.0.1]) by mailserver.incofisa.biz (Postfix) with ESMTP id 254EC6D; Thu, 3 Oct 2013 16:11:57 +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 70776-10; Thu, 3 Oct 2013 16:11:56 +0200 (CEST) Received: from www.grupoincofisa.com (unknown [192.168.1.113]) by mailserver.incofisa.biz (Postfix) with ESMTP id ECE5A3; Thu, 3 Oct 2013 16:11:56 +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:11:53 +0200 From: =?UTF-8?Q?Sime=C3=B3_Reig?= To: Adrian Klaver Cc: Subject: Re: pgbench In-Reply-To: <524D7668.4050301@gmail.com> References: <524D7668.4050301@gmail.com> Message-ID: <57c75d91fcc3d9ccc3a928548b6d24a9@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.8 (/) 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 15:51, Adrian Klaver escrigué: > On 10/03/2013 06:21 AM, Simeó Reig wrote: >> Hello >> >> I was doing a performance test with pgbench with a pretty long >> queries >> and I have the next error: >> >> $ pgbench -n -c1 -T 3 -f veins_pgbench.sql pdn >> Client 0 aborted in state 0: ERROR: syntax error at end of input >> LINE 1: ...(abc.persones.provincia = abc.poblacions.cod_provinc >> ^ >> transaction type: Custom query >> scaling factor: 1 >> query mode: simple >> number of clients: 1 >> number of threads: 1 >> duration: 3 s >> number of transactions actually processed: 0 >> tps = 0.000000 (including connections establishing) >> tps = 0.000000 (excluding connections establishing) >> >> I believe pgbench has a very low limit with the queries you can put >> inside a file with the 't' option. >> Am I right? How can avoid it ? > > > Well first you say 't' option but show 'T' option, they are different. > > Second the error is reporting a syntax error in your script, so I > would look there first. Yes, I did I mistake. I would say 'f' option (file option) not 't' option, sorry . But no, there is no mistake with the script, I can do: # psql -d pdn < veins_pgbench.sql and it works perfectly thanks Adrian, I'm almost sure that the problem is the query is too long for pgbench (1600 characters) Best regards 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