pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedpgbench
22+ messages / 14 participants
[nested] [flat]
* pgbench
@ 2001-10-10 14:13 Peter Keller <peter.keller@bvv.bayern.de>
0 siblings, 0 replies; 22+ messages in thread
From: Peter Keller @ 2001-10-10 14:13 UTC (permalink / raw)
To: pgsql-general
Hi all,
my company is going to buy new server. It will mainly be used as a database
server (of cause PostgreSQL).
Today I tested 2 server which are almost identical:
1.4 Athlon CPU
2 GB DDR with ECC
harddisk is an IBM Ultrastar 36LP (SCSI)
and raid system
The operating system is Linux with a 2.4.10 kernel.
The version of PostgreSQL is 7.1
^ permalink raw reply [nested|flat] 22+ messages in thread
* pgbench
@ 2002-09-27 15:37 Orr, Steve <sorr@rightnow.com>
2002-09-27 15:41 ` Re: pgbench Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
0 siblings, 1 reply; 22+ messages in thread
From: Orr, Steve @ 2002-09-27 15:37 UTC (permalink / raw)
To: pgsql-general
Is it possible to run pgbench against a MySQL database? Someone claims to
have done that but since it uses libpq and is PostgreSQL specific I'm
skeptical. Any ideas as to how this claim could be true?
TIA,
Steve Orr
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2002-09-27 15:37 pgbench Orr, Steve <sorr@rightnow.com>
@ 2002-09-27 15:41 ` Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
0 siblings, 0 replies; 22+ messages in thread
From: Shridhar Daithankar @ 2002-09-27 15:41 UTC (permalink / raw)
To: pgsql-general
On 27 Sep 2002 at 9:37, Orr, Steve wrote:
> Is it possible to run pgbench against a MySQL database? Someone claims to
> have done that but since it uses libpq and is PostgreSQL specific I'm
> skeptical. Any ideas as to how this claim could be true?
It should be possible. Just the one has to replace connection and query
execution function with relevant functions for mysql..
Bigger problem is how has you make mysql recognise begin;blah;commit??.;-)
Bye
Shridhar
--
Cynic, n.: One who looks through rose-colored glasses with a jaundiced eye.
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
@ 2006-03-04 08:58 Tatsuo Ishii <ishii@sraoss.co.jp>
0 siblings, 0 replies; 22+ messages in thread
From: Tatsuo Ishii @ 2006-03-04 08:58 UTC (permalink / raw)
To: Jeff_Russell@advanis.ca; +Cc: pgsql-general
pgbench comes with PostgreSQL source code distribution and must be
compiled under PostgreSQL source tree.
I'm not familiar with MacOS but I guess there may be pre-compiled
package. Anyone can help him?
--
Tatsuo Ishii
SRA OSS, Inc. Japan
> I have just received my new MacBook (1.83Gz. Duo) and wanted to do
> some benchmark testing of Postgres using your Pgbench, however I ma
> getting errors while compiling.
>
> I could probably fix some of these (define TRUE & RAND_MAX) I am not
> sure what RAND_MAX is on other systems and as far as the exit(1)?
> again not sure why. Any help would be appreciated.
>
>
> here is the output:
>
> macbook:~/Desktop/pgbench-1.1 jeffruss$ make
> gcc -O2 -I/usr/local/pgsql/include -c -o pgbench.o pgbench.c
> pgbench.c:24:22: error: postgres.h: No such file or directory
> pgbench.c: In function 'getrand':
> pgbench.c:94: error: 'RAND_MAX' undeclared (first use in this function)
> pgbench.c:94: error: (Each undeclared identifier is reported only once
> pgbench.c:94: error: for each function it appears in.)
> pgbench.c: In function 'doOne':
> pgbench.c:131: error: 'TRUE' undeclared (first use in this function)
> pgbench.c:216: warning: incompatible implicit declaration of built-in
> function 'strcpy'
> pgbench.c: In function 'doSelectOnly':
> pgbench.c:267: error: 'TRUE' undeclared (first use in this function)
> pgbench.c: In function 'init':
> pgbench.c:355: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:362: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:370: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:378: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:389: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:397: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:407: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:415: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:420: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:426: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:434: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c: In function 'main':
> pgbench.c:523: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:532: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:537: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:545: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:552: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:557: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:565: warning: assignment makes pointer from integer without
> a cast
> pgbench.c:573: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:588: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:595: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:600: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:609: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:616: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:626: error: 'uint' undeclared (first use in this function)
> pgbench.c:626: error: parse error before 'tv1'
> pgbench.c:637: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:659: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:671: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:688: warning: incompatible implicit declaration of built-in
> function 'exit'
> pgbench.c:695: warning: incompatible implicit declaration of built-in
> function 'exit'
> make: *** [pgbench.o] Error 1
^ permalink raw reply [nested|flat] 22+ messages in thread
* pgbench
@ 2008-08-08 16:16 Heeman Lee <Heeman.Lee@hds.com>
2008-08-08 17:10 ` Re: pgbench Heeman Lee <Heeman.Lee@hds.com>
0 siblings, 1 reply; 22+ messages in thread
From: Heeman Lee @ 2008-08-08 16:16 UTC (permalink / raw)
To: pgsql-general
Hi,
I can't find pgbench on the package we installed. I built, contrib pkg
and installed, but that still didn't generate pgbench anywhere.
Any idea where to get pgbench?
--
Heeman Lee
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2008-08-08 16:16 pgbench Heeman Lee <Heeman.Lee@hds.com>
@ 2008-08-08 17:10 ` Heeman Lee <Heeman.Lee@hds.com>
0 siblings, 0 replies; 22+ messages in thread
From: Heeman Lee @ 2008-08-08 17:10 UTC (permalink / raw)
To: pgsql-general
Never mind. I found it.
On Fri, 2008-08-08 at 12:16 -0400, Heeman Lee wrote:
> Hi,
>
> I can't find pgbench on the package we installed. I built, contrib pkg
> and installed, but that still didn't generate pgbench anywhere.
> Any idea where to get pgbench?
>
> --
> Heeman Lee
--
Heeman Lee
^ permalink raw reply [nested|flat] 22+ messages in thread
* pgbench
@ 2013-10-03 13:21 Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: Simeó Reig @ 2013-10-03 13:21 UTC (permalink / raw)
To: pgsql-general
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 ?
My 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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
@ 2013-10-03 13:51 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
0 siblings, 1 reply; 22+ messages in thread
From: Adrian Klaver @ 2013-10-03 13:51 UTC (permalink / raw)
To: Simeó Reig <simeo.reig@grupoincofisa.com>; +Cc: pgsql-general
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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
@ 2013-10-03 14:11 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:16 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:57 ` Re: pgbench Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>
0 siblings, 2 replies; 22+ messages in thread
From: Simeó Reig @ 2013-10-03 14:11 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@gmail.com>; +Cc: pgsql-general
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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
@ 2013-10-03 14:16 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:23 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
1 sibling, 1 reply; 22+ messages in thread
From: Adrian Klaver @ 2013-10-03 14:16 UTC (permalink / raw)
To: Simeó Reig <simeo.reig@grupoincofisa.com>; +Cc: pgsql-general
On 10/03/2013 07:11 AM, Simeó Reig wrote:
> 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)
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."
>
> 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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:16 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
@ 2013-10-03 14:23 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:40 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: Simeó Reig @ 2013-10-03 14:23 UTC (permalink / raw)
To: pgsql-general
A 2013-10-03 16:16, Adrian Klaver escrigué:
> On 10/03/2013 07:11 AM, Simeó Reig wrote:
>> 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)
>
> 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 ;-)
Thanks again 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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:16 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:23 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
@ 2013-10-03 14:40 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:48 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
0 siblings, 1 reply; 22+ messages in thread
From: Adrian Klaver @ 2013-10-03 14:40 UTC (permalink / raw)
To: Simeó Reig <simeo.reig@grupoincofisa.com>; +Cc: pgsql-general
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.
>
> Thanks again Adrian
>
> 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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:16 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:23 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:40 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
@ 2013-10-03 14:48 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 15:00 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 1 reply; 22+ messages in thread
From: Simeó Reig @ 2013-10-03 14:48 UTC (permalink / raw)
To: Adrian Klaver <adrian.klaver@gmail.com>; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:16 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:23 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:40 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:48 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
@ 2013-10-03 15:00 ` Adrian Klaver <adrian.klaver@gmail.com>
0 siblings, 0 replies; 22+ messages in thread
From: Adrian Klaver @ 2013-10-03 15:00 UTC (permalink / raw)
To: Simeó Reig <simeo.reig@grupoincofisa.com>; +Cc: pgsql-general
On 10/03/2013 07:48 AM, Simeó Reig wrote:
> A 2013-10-03 16:40, Adrian Klaver escrigué:
>> On 10/03/2013 07:23 AM, Simeó Reig wrote:
>
> 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 would hope not, the arrow is going the wrong way:) At any rate psql !=
pgbench.
>
> I did it with many queries since today, but I think this is too long
Looks like this is one of these things to walk away from for a time and
then come back too. Good luck.
>
> Many many thanks for your interest Adrian
>
> 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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
@ 2013-10-03 14:57 ` Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>
2013-10-03 15:50 ` Re: pgbench Alvaro Herrera <alvherre@2ndquadrant.com>
1 sibling, 1 reply; 22+ messages in thread
From: Giuseppe Broccolo @ 2013-10-03 14:57 UTC (permalink / raw)
To: pgsql-general
Il 03/10/2013 16:11, Simeó Reig ha scritto:
> 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)
The format of the script file has to be one SQL command per line;
multiline SQL commands are not supported, and empty lines are ignored.
This could bring to errors. Could this be your case?
Giuseppe.
--
Giuseppe Broccolo - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
giuseppe.broccolo@2ndQuadrant.it | www.2ndQuadrant.it
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:57 ` Re: pgbench Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>
@ 2013-10-03 15:50 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-10-03 16:55 ` Re: pgbench Tom Lane <tgl@sss.pgh.pa.us>
2013-10-04 08:16 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
0 siblings, 2 replies; 22+ messages in thread
From: Alvaro Herrera @ 2013-10-03 15:50 UTC (permalink / raw)
To: Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>; +Cc: pgsql-general
Giuseppe Broccolo wrote:
> The format of the script file has to be one SQL command per line;
> multiline SQL commands are not supported, and empty lines are
> ignored. This could bring to errors. Could this be your case?
Multiline SQL commands are not supported? Well that sucks, because only
BUFSIZ chars are read from each line. In my platform that's 8192, but
maybe in Simeó's case it's shorter .. or maybe his query really is
longer than 8192 bytes.
This smells like a pgbench bug to me.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:57 ` Re: pgbench Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>
2013-10-03 15:50 ` Re: pgbench Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2013-10-03 16:55 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 22+ messages in thread
From: Tom Lane @ 2013-10-03 16:55 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@2ndquadrant.com>; +Cc: Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>; pgsql-general
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Multiline SQL commands are not supported? Well that sucks, because only
> BUFSIZ chars are read from each line. In my platform that's 8192, but
> maybe in Simeó's case it's shorter .. or maybe his query really is
> longer than 8192 bytes.
> This smells like a pgbench bug to me.
Yeah, I ran into that line-length limit in pgbench a couple months ago.
We really oughta remove the restriction; seems like that shouldn't be
hard.
I'm less enthused about introducing a multiline-command feature; that'd
require inventing some escape syntax that's not there now, and making it
100% backwards compatible might be hard.
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:57 ` Re: pgbench Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>
2013-10-03 15:50 ` Re: pgbench Alvaro Herrera <alvherre@2ndquadrant.com>
@ 2013-10-04 08:16 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2014-12-13 10:12 ` Re: pgbench alikon <info@alikonweb.it>
1 sibling, 1 reply; 22+ messages in thread
From: Simeó Reig @ 2013-10-04 08:16 UTC (permalink / raw)
To: pgsql-general
A 2013-10-03 17:50, Alvaro Herrera escrigué:
> Giuseppe Broccolo wrote:
>
>> The format of the script file has to be one SQL command per line;
>> multiline SQL commands are not supported, and empty lines are
>> ignored. This could bring to errors. Could this be your case?
>
> Multiline SQL commands are not supported? Well that sucks, because
> only
> BUFSIZ chars are read from each line. In my platform that's 8192, but
> maybe in Simeó's case it's shorter .. or maybe his query really is
> longer than 8192 bytes.
>
> This smells like a pgbench bug to me.
>
> --
> Álvaro Herrera http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
Álvaro, you hit the nail on the head!
I have seen that in stdio.h BUFSIZ is defined like 1024 in freeBSD 9.0,
probably for this reason I can't test this query (1657 characters), but
I'm able to test shorter queries.
Finally I have done a plsql procedure to call the query from pgbench.
Meanwhile I will try to figure out if I can increase this variable
without affect the system.
Thanks to all
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
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Re: pgbench Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:57 ` Re: pgbench Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>
2013-10-03 15:50 ` Re: pgbench Alvaro Herrera <alvherre@2ndquadrant.com>
2013-10-04 08:16 ` Re: pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
@ 2014-12-13 10:12 ` alikon <info@alikonweb.it>
0 siblings, 0 replies; 22+ messages in thread
From: alikon @ 2014-12-13 10:12 UTC (permalink / raw)
To: pgsql-general
Hi,
can you share the plsql procedure to call the query from pgbench
i'm running in the same issue cause i have a long query that i want to
submit to pgbench
There are any news for fix this pgbench issue ?
--
View this message in context: http://postgresql.nabble.com/pgbench-tp5773225p5830455.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
^ permalink raw reply [nested|flat] 22+ messages in thread
* pgbench
@ 2017-12-15 15:37 Olga Lytvynova-Bogdanova <olytvynovabogdanova@gmail.com>
2017-12-15 21:18 ` Re: pgbench John R Pierce <pierce@hogranch.com>
0 siblings, 1 reply; 22+ messages in thread
From: Olga Lytvynova-Bogdanova @ 2017-12-15 15:37 UTC (permalink / raw)
To: pgsql-general
Hello,
Is there a way to integrate pgbench with TeamCity? If yes, could you share
very briefly how to do this?
Which volumes of data does pgbench support?
Much appreciated for the attention.
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2017-12-15 15:37 pgbench Olga Lytvynova-Bogdanova <olytvynovabogdanova@gmail.com>
@ 2017-12-15 21:18 ` John R Pierce <pierce@hogranch.com>
2017-12-18 07:06 ` Re: pgbench Achilleas Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 1 reply; 22+ messages in thread
From: John R Pierce @ 2017-12-15 21:18 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 12/15/2017 7:37 AM, Olga Lytvynova-Bogdanova wrote:
> Is there a way to integrate pgbench with TeamCity? If yes, could you
> share very briefly how to do this?
I would suspect this is a question for TeamCity, not for postgresql. I
don't even know what TeamCity actually is (google says 'Continuous
Integration' but thats just a buzz phrase to me). Can it run shell
scripts?
> Which volumes of data does pgbench support?
I'm unclear what you mean by 'which volumes of data' ? do you mean,
how large of a dataset does pgbench generate and use? thats totally
configurable with commandline parameters, from a few dozen kilobytes to
many gigabytes.
--
john r pierce, recycling bits in santa cruz
^ permalink raw reply [nested|flat] 22+ messages in thread
* Re: pgbench
2017-12-15 15:37 pgbench Olga Lytvynova-Bogdanova <olytvynovabogdanova@gmail.com>
2017-12-15 21:18 ` Re: pgbench John R Pierce <pierce@hogranch.com>
@ 2017-12-18 07:06 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
0 siblings, 0 replies; 22+ messages in thread
From: Achilleas Mantzios @ 2017-12-18 07:06 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 15/12/2017 23:18, John R Pierce wrote:
> On 12/15/2017 7:37 AM, Olga Lytvynova-Bogdanova wrote:
>> Is there a way to integrate pgbench with TeamCity? If yes, could you share very briefly how to do this?
>
> I would suspect this is a question for TeamCity, not for postgresql. I don't even know what TeamCity actually is (google says 'Continuous Integration' but thats just a buzz phrase to me). Can
> it run shell scripts?
We have TeamCity installed, it just listens for git pushes and recompiles and redeploys the application, needs an SQL database, we use postgresql of course, but it spams the DB so hard it is one of
the rare cases I would say to switch to mysql .
So, I think the OP refers to pgsql not pgbench.
>
>
>> Which volumes of data does pgbench support?
> I'm unclear what you mean by 'which volumes of data' ? do you mean, how large of a dataset does pgbench generate and use? thats totally configurable with commandline parameters, from a few dozen
> kilobytes to many gigabytes.
>
>
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
^ permalink raw reply [nested|flat] 22+ messages in thread
end of thread, other threads:[~2017-12-18 07:06 UTC | newest]
Thread overview: 22+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-10-10 14:13 pgbench Peter Keller <peter.keller@bvv.bayern.de>
2002-09-27 15:37 pgbench Orr, Steve <sorr@rightnow.com>
2002-09-27 15:41 ` Shridhar Daithankar <shridhar_daithankar@persistent.co.in>
2006-03-04 08:58 Re: pgbench Tatsuo Ishii <ishii@sraoss.co.jp>
2008-08-08 16:16 pgbench Heeman Lee <Heeman.Lee@hds.com>
2008-08-08 17:10 ` Heeman Lee <Heeman.Lee@hds.com>
2013-10-03 13:21 pgbench Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 13:51 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:11 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:16 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:23 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 14:40 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:48 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2013-10-03 15:00 ` Adrian Klaver <adrian.klaver@gmail.com>
2013-10-03 14:57 ` Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>
2013-10-03 15:50 ` Alvaro Herrera <alvherre@2ndquadrant.com>
2013-10-03 16:55 ` Tom Lane <tgl@sss.pgh.pa.us>
2013-10-04 08:16 ` Simeó Reig <simeo.reig@grupoincofisa.com>
2014-12-13 10:12 ` alikon <info@alikonweb.it>
2017-12-15 15:37 pgbench Olga Lytvynova-Bogdanova <olytvynovabogdanova@gmail.com>
2017-12-15 21:18 ` John R Pierce <pierce@hogranch.com>
2017-12-18 07:06 ` Achilleas Mantzios <achill@matrix.gatewaynet.com>
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