Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjJl-0004H7-Gk for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2013 13:51:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VRjJl-00032g-0d for pgsql-general@arkaria.postgresql.org; Thu, 03 Oct 2013 13:51:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjJj-00032X-ND for pgsql-general@postgresql.org; Thu, 03 Oct 2013 13:51:47 +0000 Received: from mail-pd0-x22a.google.com ([2607:f8b0:400e:c02::22a]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VRjJd-00082a-3v for pgsql-general@postgresql.org; Thu, 03 Oct 2013 13:51:47 +0000 Received: by mail-pd0-f170.google.com with SMTP id x10so2502197pdj.15 for ; Thu, 03 Oct 2013 06:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=mf4cNzfwnWsF7w3iCU5ghmUAwOjnWTvWAiACuBX+tak=; b=GnRXgcKsl1NvVbKY06TZg3uy3CIwXAGbQk4yLELBt/tqnrfEWyZ8AcaT/Jq/JYFIVA yBhcVaasJ2T3efysbt1sulXXdCbhb1+GmnRKUYfYxC5uVedC7waVhmq/sn5bbVh2HKXf slH0XykCjnVynpcXuOfji/ZMrDTYaRKrmzxEkeBMu5ekX/UQjM87SYufItERrKH4Tadj zOccqdhUTRJsIuYrL0aKBobN0nXa/yqdyqcnnVKZ+MyWT+j5syKJnXEnVH1+GMhPYtNM wLo0lW5vRR8FBhoI/7261Vifvk9LoD42Meewev2da7QdkhXbHflzmd9dO9y6FH/7mijE lMPg== X-Received: by 10.68.92.228 with SMTP id cp4mr609701pbb.204.1380808298978; Thu, 03 Oct 2013 06:51:38 -0700 (PDT) Received: from [192.168.1.2] (65-102-181-223.tukw.qwest.net. [65.102.181.223]) by mx.google.com with ESMTPSA id xs1sm10812861pac.7.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 03 Oct 2013 06:51:38 -0700 (PDT) Message-ID: <524D7668.4050301@gmail.com> Date: Thu, 03 Oct 2013 06:51:36 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: =?UTF-8?B?U2ltZcOzIFJlaWc=?= CC: pgsql-general@postgresql.org Subject: Re: pgbench References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.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 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. > > My best regards > > > Simeó Reig > Barcelona (Spain) > > -- Adrian Klaver adrian.klaver@gmail.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general