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 1 of 5 Topic 3699 of 3917
Post > Topic >>

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

by bruce@[EMAIL PROTECTED] (Bruce Momjian) May 7, 2008 at 05:38 PM

--ELM1210196330-921-2_
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="US-ASCII"

Tom Lane wrote:
> Greg Smith <gsmith@[EMAIL PROTECTED]
> writes:
> > On Fri, 14 Mar 2008, Tom Lane wrote:
> >> Yeah, -s is only meaningful when given with -i.  Maybe someday we
ought
> >> to fix pgbench to complain if you try to set it at other times.
> 
> > You have to pass -s in to the actual run if you're specifying your own

> > custom script(s) using -f and you want the :scale variable to be
defined. 
> 
> Right, I knew that at one time ;-)
> 
> > The way the option parsing code is done would make complaining in the
case 
> > where your parameter is ignored a bit of a contortion.  The part that 
> > detects based on the database is after all the other parsing because
the 
> > connection has to be brought up first.
> 
> Yeah.  But couldn't we have that part issue a warning if -s had been set
> on the command line?

Patch attached that issues a warning.

-- 
  Bruce Momjian  <bruce@[EMAIL PROTECTED]
>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

--ELM1210196330-921-2_
Content-Transfer-Encoding: 7bit
Content-Type: text/x-diff
Content-Disposition: inline; filename="/pgpatches/pgbench"

Index: contrib/pgbench/pgbench.c
===================================================================
RCS file: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v
retrieving revision 1.79
diff -c -c -r1.79 pgbench.c
*** contrib/pgbench/pgbench.c	19 Mar 2008 03:33:21 -0000	1.79
--- contrib/pgbench/pgbench.c	7 May 2008 21:36:42 -0000
***************
*** 1627,1632 ****
--- 1627,1635 ----
  		}
  	}
  
+ 	if (!is_init_mode && scale)
+ 		fprintf(stderr, "Scale specification ignored because init mode (-i)
not specified\n");
+ 	
  	if (argc > optind)
  		dbName = argv[optind];
  	else

--ELM1210196330-921-2_
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0


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

--ELM1210196330-921-2_--
 




 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
tan13V112 Thu Jul 24 7:09:12 CDT 2008.