Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZBz5X-0007MI-IU for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 05:37:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZBz5W-0005Fy-NC for pgsql-bugs@arkaria.postgresql.org; Mon, 06 Jul 2015 05:37:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZBz5V-0005Fi-Hm for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 05:37:05 +0000 Received: from boipeva.ensmp.fr ([194.214.158.101]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZBz5R-0007MK-OW for pgsql-bugs@postgresql.org; Mon, 06 Jul 2015 05:37:04 +0000 Received: from cri.ensmp.fr (AGrenoble-653-1-21-35.w90-52.abo.wanadoo.fr [90.52.203.35]) (authenticated bits=0) by boipeva.ensmp.fr (8.15.1/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id t665arKd029434 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 6 Jul 2015 07:36:55 +0200 Date: Mon, 6 Jul 2015 07:36:53 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto To: Tom Lane cc: Julien Rouhaud , Guillaume Lelarge , mail@bwe.im, Oleksandr Shulgin , PostgreSQL Bugs List Subject: Re: BUG #12379: pgbench should hint to pgbench -i In-Reply-To: <23314.1436142811@sss.pgh.pa.us> Message-ID: References: <20141231105955.8014.38426@wrigleys.postgresql.org> <87oales6zm.fsf@ashulgin01.corp.ad.zalando.net> <55984046.60901@dalibo.com> <559908D4.7020901@dalibo.com> <23314.1436142811@sss.pgh.pa.us> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Miltered: at boipeva.ensmp.fr with ID 559A13F5.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 559A13F5.000 from AGrenoble-653-1-21-35.w90-52.abo.wanadoo.fr/AGrenoble-653-1-21-35.w90-52.abo.wanadoo.fr/90.52.203.35/cri.ensmp.fr/ X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org > I looked at this a bit and have a few comments: > > * I think it might be best to restrict the hint to appear only in the > case that the SQLSTATE is ERRCODE_UNDEFINED_TABLE. There are a lot of > possible failures here, and I'm not sure this hint is apropos for any > but that one. Hmmm... the likelyhood of another kind of error is small on: "select count(*) from pgbench_branches;" I think the only other possibility would be a permission issue. > * I really don't care for "HINT pgbench: " as that's got pretty much > nothing to do with any other message formatting we have anywhere, > least of all the existing hint-like messages in pgbench. It is kind of a copy of postgres hints, but not more than that: HINT: Consider increasing the configuration parameter "max_wal_size" > I've started a different thread at > http://www.postgresql.org/message-id/22280.1436139973@sss.pgh.pa.us to > discuss what the general message formatting in pgbench ought to be, and > probably this needs to wait for the outcome of that discussion. Yep. > * I'd be a bit inclined to reduce the message to something like > Perhaps you need to do initialization ("pgbench -i") in database "foo" > so that we can avoid the question of formatting of multi-sentence hints. Why not. This sentence hints at one possible error instead of two, though, but it may be enough. -- Fabien. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs