Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Patches > Re: [GENERAL] p...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 3699 of 4088
Post > Topic >>

Re: [GENERAL] pgbench not setting scale size correctly?

by tgl@[EMAIL PROTECTED] (Tom Lane) May 9, 2008 at 10:48 AM

Greg Smith <gsmith@[EMAIL PROTECTED]
> writes:
> Turns out it wasn't so contorted.  Updated patch attached that only
warns 
> in the exact cases where the setting is ignored, and the warning says
how 
> it's actually setting the scale.

It looks like the code could do with some refactoring.  AFAICS
scale is stored into all the :scale variables at lines 1671-1691
(although not if you only have one client !?) only to be done over
again at lines 1746-1763 (though not if ttype != 3).  Wasteful,
confusing, and there's a case where it fails to be done at all.
Sigh ...

			regards, tom lane

-- 
Sent via pgsql-patches mailing list (pgsql-patches@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches
 




 5 Posts in Topic:
Re: [GENERAL] pgbench not setting scale size correctly?
bruce@[EMAIL PROTECTED]   2008-05-07 17:38:50 
Re: [GENERAL] pgbench not setting scale size correctly?
gsmith@[EMAIL PROTECTED]   2008-05-07 18:07:07 
Re: [GENERAL] pgbench not setting scale size correctly?
gsmith@[EMAIL PROTECTED]   2008-05-09 03:51:19 
Re: [GENERAL] pgbench not setting scale size correctly?
tgl@[EMAIL PROTECTED] (T  2008-05-09 10:48:35 
Re: [GENERAL] pgbench not setting scale size correctly?
tgl@[EMAIL PROTECTED] (T  2008-05-09 11:55:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 9:16:17 CDT 2008.