Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvLYa-0004b0-8m for pgsql-bugs@arkaria.postgresql.org; Thu, 21 May 2015 08:10:20 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvLYZ-0005qC-P1 for pgsql-bugs@arkaria.postgresql.org; Thu, 21 May 2015 08:10:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvLYY-0005lt-0C for pgsql-bugs@postgresql.org; Thu, 21 May 2015 08:10:18 +0000 Received: from jiboia.ensmp.fr ([194.214.158.103]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YvLYT-0007Jv-29 for pgsql-bugs@postgresql.org; Thu, 21 May 2015 08:10:15 +0000 Received: from cri.ensmp.fr (nat-any-rnt.cri.ensmp.fr [195.83.117.252]) (authenticated bits=0) by jiboia.ensmp.fr (8.14.9/8.14.9/JMMC-22/Oct/2013) with ESMTP id t4L8A4mK001996 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 21 May 2015 10:10:07 +0200 Date: Thu, 21 May 2015 10:10:04 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto To: Oleksandr Shulgin cc: mail@bwe.im, PostgreSQL Bugs List Subject: Re: BUG #12379: pgbench should hint to pgbench -i In-Reply-To: <87oales6zm.fsf@ashulgin01.corp.ad.zalando.net> Message-ID: References: <20141231105955.8014.38426@wrigleys.postgresql.org> <87oales6zm.fsf@ashulgin01.corp.ad.zalando.net> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Miltered: at jiboia.ensmp.fr with ID 555D92DC.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: 555D92DC.000 from nat-any-rnt.cri.ensmp.fr/nat-any-rnt.cri.ensmp.fr/195.83.117.252/cri.ensmp.fr/ X-Pg-Spam-Score: -1.9 (-) 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 Hello Oleksandr, >> HINT: is "foo" the right database? did you initialize first (pgbench -i)? > > I don't think there is precedent for spitting out "HINT:" in client code > (at least grep didn't find it). So this message might look like it's > coming from the server, while it doesn't. I do not see that as a problem. From my point of view a "HINT" is just what it is, and the message says clearly that it comes from pgbench. > I think the following is closer to pre-existing experience, IMO: > + fprintf(stderr, "Is \"%s\" the right database? Did you initialize it first (pgbench -i)?\n", dbName); Hmmm. I liked to have a prefix on the line, that gives a purpose to the sentence. Maybe: HINT (pgbench): Is "foo" the right database? Did you initialize (-i) first? Or pgbench: ... Or pgbench HINT: ... -- Fabien. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs