Lists: | pgsql-hackers |
---|
From: | "Curtis Faith" <curtis(at)galtair(dot)com> |
---|---|
To: | <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | "Pgsql-Hackers" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Prepare enabled pgbench |
Date: | 2002-11-12 19:41:40 |
Message-ID: | DMEEJMCDOJAKPPFACMPMKECECFAA.curtis@galtair.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tatsuo, are you or anyone else working on adding PREPARE, EXECUTE support to
pgbench?
If not, I can do it myself and if you are interested, I'll send you the
patch.
- Curtis
From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | curtis(at)galtair(dot)com |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 01:50:51 |
Message-ID: | 20021113.105051.85413778.t-ishii@sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
> Tatsuo, are you or anyone else working on adding PREPARE, EXECUTE support to
> pgbench?
As far as I know, no one is working on that.
> If not, I can do it myself and if you are interested, I'll send you the
> patch.
Thanks. I can commit it for 7.4. BTW, it would be nice if we could
have a switch to turn on/off PREPARE/EXECUTE in pgbench so that we
could see how PRPARE/EXECUTE could improve the performance...
--
Tatsuo Ishii
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | curtis(at)galtair(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 01:59:45 |
Message-ID: | 200211130159.gAD1xkQ09568@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tatsuo Ishii wrote:
> > Tatsuo, are you or anyone else working on adding PREPARE, EXECUTE support to
> > pgbench?
>
> As far as I know, no one is working on that.
>
> > If not, I can do it myself and if you are interested, I'll send you the
> > patch.
>
> Thanks. I can commit it for 7.4. BTW, it would be nice if we could
> have a switch to turn on/off PREPARE/EXECUTE in pgbench so that we
> could see how PRPARE/EXECUTE could improve the performance...
We could probably just run before-after patch tests to see the
performance change. I am afraid adding that switch into the code may
make it messy.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | pgman(at)candle(dot)pha(dot)pa(dot)us |
Cc: | curtis(at)galtair(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 02:16:17 |
Message-ID: | 20021113.111617.115904436.t-ishii@sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
> > Thanks. I can commit it for 7.4. BTW, it would be nice if we could
> > have a switch to turn on/off PREPARE/EXECUTE in pgbench so that we
> > could see how PRPARE/EXECUTE could improve the performance...
>
> We could probably just run before-after patch tests to see the
> performance change. I am afraid adding that switch into the code may
> make it messy.
But one of the purposes of pgbench is examining performance on
different environments, doesn't it? I'm afraid hard coded
PREPARE/EXECUTE makes it harder.
--
Tatsuo Ishii
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | curtis(at)galtair(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 02:20:07 |
Message-ID: | 200211130220.gAD2K7J11712@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tatsuo Ishii wrote:
> > > Thanks. I can commit it for 7.4. BTW, it would be nice if we could
> > > have a switch to turn on/off PREPARE/EXECUTE in pgbench so that we
> > > could see how PRPARE/EXECUTE could improve the performance...
> >
> > We could probably just run before-after patch tests to see the
> > performance change. I am afraid adding that switch into the code may
> > make it messy.
>
> But one of the purposes of pgbench is examining performance on
> different environments, doesn't it? I'm afraid hard coded
> PREPARE/EXECUTE makes it harder.
I was just thinking that pgbench is for measuring code changes, not for
testing changes _in_ pgbench. Once we know the performance difference
for PERFORM, would we still keep the code in pgbench? Maybe to test
later, I guess.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | pgman(at)candle(dot)pha(dot)pa(dot)us |
Cc: | curtis(at)galtair(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 02:32:35 |
Message-ID: | 20021113.113235.48534472.t-ishii@sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
> > But one of the purposes of pgbench is examining performance on
> > different environments, doesn't it? I'm afraid hard coded
> > PREPARE/EXECUTE makes it harder.
>
> I was just thinking that pgbench is for measuring code changes, not for
> testing changes _in_ pgbench. Once we know the performance difference
> for PERFORM, would we still keep the code in pgbench? Maybe to test
> later, I guess.
My concern is PREPARE/EXECUTE may NOT always improve the
performance. I guess we have very few data to judge PREPARE/EXECUTE is
good or not. Moreover PREPARE/EXECUTE might be improved in the
future. If that happens, keeping that switch would help examining the
effect, no?
--
Tatsuo Ishii
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | curtis(at)galtair(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 02:42:22 |
Message-ID: | 200211130242.gAD2gM814326@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tatsuo Ishii wrote:
> > > But one of the purposes of pgbench is examining performance on
> > > different environments, doesn't it? I'm afraid hard coded
> > > PREPARE/EXECUTE makes it harder.
> >
> > I was just thinking that pgbench is for measuring code changes, not for
> > testing changes _in_ pgbench. Once we know the performance difference
> > for PERFORM, would we still keep the code in pgbench? Maybe to test
> > later, I guess.
>
> My concern is PREPARE/EXECUTE may NOT always improve the
> performance. I guess we have very few data to judge PREPARE/EXECUTE is
> good or not. Moreover PREPARE/EXECUTE might be improved in the
> future. If that happens, keeping that switch would help examining the
> effect, no?
It would. I was just concerned that having both in there would be a
maintenance headache and would perhaps double the amount of code and
make it complicated. Let see what the author does and we can decide
then.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
---|---|
To: | pgman(at)candle(dot)pha(dot)pa(dot)us |
Cc: | curtis(at)galtair(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 02:55:20 |
Message-ID: | 20021113.115520.45175833.t-ishii@sra.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
> > My concern is PREPARE/EXECUTE may NOT always improve the
> > performance. I guess we have very few data to judge PREPARE/EXECUTE is
> > good or not. Moreover PREPARE/EXECUTE might be improved in the
> > future. If that happens, keeping that switch would help examining the
> > effect, no?
>
> It would. I was just concerned that having both in there would be a
> maintenance headache and would perhaps double the amount of code and
> make it complicated. Let see what the author does and we can decide
> then.
Ok.
--
Tatsuo Ishii
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | curtis(at)galtair(dot)com, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 05:08:48 |
Message-ID: | 18716.1037164128@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> Thanks. I can commit it for 7.4. BTW, it would be nice if we could
> have a switch to turn on/off PREPARE/EXECUTE in pgbench so that we
> could see how PRPARE/EXECUTE could improve the performance...
That is a *must*. Otherwise, you've simply made an arbitrary change
in the benchmark ... which is no benchmark at all.
regards, tom lane
From: | "Curtis Faith" <curtis(at)galtair(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Tatsuo Ishii" <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Prepare enabled pgbench |
Date: | 2002-11-13 14:24:36 |
Message-ID: | DMEEJMCDOJAKPPFACMPMEECJCFAA.curtis@galtair.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
> Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> > Thanks. I can commit it for 7.4. BTW, it would be nice if we could
> > have a switch to turn on/off PREPARE/EXECUTE in pgbench so that we
> > could see how PRPARE/EXECUTE could improve the performance...
tom lane replies:
> That is a *must*. Otherwise, you've simply made an arbitrary change
> in the benchmark ... which is no benchmark at all.
>
> regards, tom lane
I will add it as a switched option.
It should be possible to keep most of the code common for the two cases.
- Curtis
From: | Justin Clift <justin(at)postgresql(dot)org> |
---|---|
To: | Curtis Faith <curtis(at)galtair(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Prepare enabled pgbench |
Date: | 2003-01-20 04:04:16 |
Message-ID: | 3E2B7540.6020308@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hi Curtis,
Have you had time to get this done?
:-)
Regards and best wishes,
Justin Clift
Curtis Faith wrote:
>>Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
>>
>>>Thanks. I can commit it for 7.4. BTW, it would be nice if we could
>>>have a switch to turn on/off PREPARE/EXECUTE in pgbench so that we
>>>could see how PRPARE/EXECUTE could improve the performance...
>
>
> tom lane replies:
>
>>That is a *must*. Otherwise, you've simply made an arbitrary change
>>in the benchmark ... which is no benchmark at all.
>>
>> regards, tom lane
>
>
> I will add it as a switched option.
>
> It should be possible to keep most of the code common for the two cases.
>
> - Curtis
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi