From: Simeó Reig <simeo.reig@grupoincofisa.com>
To: Adrian Klaver <adrian.klaver@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: pgbench
Date: Thu, 03 Oct 2013 16:48:14 +0200
Message-ID: <5c001cb752c6d678fda4f3a42eebc178@mailserver.grupoincofisa.com> (raw)
In-Reply-To: <524D81EA.8050300@gmail.com>
References: <c7576ae69ced88ce09cb8c004145a460@mailserver.grupoincofisa.com>
<524D7668.4050301@gmail.com>
<57c75d91fcc3d9ccc3a928548b6d24a9@mailserver.grupoincofisa.com>
<524D7C54.8070701@gmail.com>
<63b31800c1e05f7d999f2e40a03b72dd@mailserver.grupoincofisa.com>
<524D81EA.8050300@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
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
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-general@postgresql.org
Cc: simeo.reig@grupoincofisa.com, adrian.klaver@gmail.com
Subject: Re: pgbench
In-Reply-To: <5c001cb752c6d678fda4f3a42eebc178@mailserver.grupoincofisa.com>
References: <c7576ae69ced88ce09cb8c004145a460@mailserver.grupoincofisa.com> <524D7668.4050301@gmail.com> <57c75d91fcc3d9ccc3a928548b6d24a9@mailserver.grupoincofisa.com> <524D7C54.8070701@gmail.com> <63b31800c1e05f7d999f2e40a03b72dd@mailserver.grupoincofisa.com> <524D81EA.8050300@gmail.com> <5c001cb752c6d678fda4f3a42eebc178@mailserver.grupoincofisa.com>
* 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