Re: pgbench \for or similar loop

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>
Cc: Aidan Van Dyk <aidan(at)highrise(dot)ca>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Christopher Browne <cbbrowne(at)gmail(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pgbench \for or similar loop
Date: 2011-04-22 06:48:02
Message-ID: 4DB124A2.4080607@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Kevin Grittner wrote:
> I'm not clear on exactly what you're proposing there, but the thing
> I've considered doing is having threads to try to keep a FIFO queue
> populated with a configurable transaction mix, while a configurable
> number of worker threads pull those transactions off the queue and...
>

This is like the beginning of an advertisement for how Tsung is useful
for simulating complicated workloads. The thought of growing pgbench to
reach that level of capabilities makes my head hurt.

When faced with this same issue, the sysbench team decided to embed Lua
as their scripting language; sample scripts:
http://bazaar.launchpad.net/~sysbench-developers/sysbench/0.5/files/head:/sysbench/tests/db/

This isn't very well known because the whole MySQL community fracturing
has impacted their ability to actually release this overhaul--seems like
they spend all their time just trying to add support for each new engine
of the month. I don't even like Lua, yet this still seems like a much
better idea than trying to build on top of the existing pgbench codebase.

--
Greg Smith 2ndQuadrant US greg(at)2ndQuadrant(dot)com Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Deka, Rajib IN MAA SL 2011-04-22 06:54:23 Re: Re: database system identifier differs between the primary and standby
Previous Message Greg Smith 2011-04-22 06:23:00 Re: pgbench \for or similar loop