Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YvjKi-0008Fn-MQ for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 09:33:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YvjKi-0006SH-23 for pgsql-bugs@arkaria.postgresql.org; Fri, 22 May 2015 09:33:36 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YvjKg-0006SA-VV for pgsql-bugs@postgresql.org; Fri, 22 May 2015 09:33:35 +0000 Received: from jiboia.ensmp.fr ([194.214.158.103]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1YvjKd-00049n-IO for pgsql-bugs@postgresql.org; Fri, 22 May 2015 09:33:33 +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 t4M9XJmt003701 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 22 May 2015 11:33:22 +0200 Date: Fri, 22 May 2015 11:33:19 +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: MULTIPART/MIXED; BOUNDARY="8323329-1651769787-1432287202=:30229" X-Miltered: at jiboia.ensmp.fr with ID 555EF7DF.001 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID fabien.coelho X-j-chkmail-Enveloppe: 555EF7DF.001 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1651769787-1432287202=:30229 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed >> 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. Here is a v3, which makes it clearer that the hint comes from pgbench. HINT pgbench: is "foo" the right database? did you initialize first (-i)? -- Fabien. --8323329-1651769787-1432287202=:30229 Content-Type: TEXT/x-diff; name=pgbench-hint-3.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=pgbench-hint-3.patch ZGlmZiAtLWdpdCBhL3NyYy9iaW4vcGdiZW5jaC9wZ2JlbmNoLmMgYi9zcmMv YmluL3BnYmVuY2gvcGdiZW5jaC5jDQppbmRleCA4YjhiNTkxLi40MTQ3YzUz IDEwMDY0NA0KLS0tIGEvc3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYw0KKysr IGIvc3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYw0KQEAgLTMyNTAsNiArMzI1 MCw3IEBAIG1haW4oaW50IGFyZ2MsIGNoYXIgKiphcmd2KQ0KIAkJaWYgKFBR cmVzdWx0U3RhdHVzKHJlcykgIT0gUEdSRVNfVFVQTEVTX09LKQ0KIAkJew0K IAkJCWZwcmludGYoc3RkZXJyLCAiJXMiLCBQUWVycm9yTWVzc2FnZShjb24p KTsNCisJCQlmcHJpbnRmKHN0ZGVyciwgIkhJTlQgcGdiZW5jaDogIGlzIFwi JXNcIiB0aGUgcmlnaHQgZGF0YWJhc2U/IGRpZCB5b3UgaW5pdGlhbGl6ZSBm aXJzdCAoLWkpP1xuIiwgZGJOYW1lKTsNCiAJCQlleGl0KDEpOw0KIAkJfQ0K IAkJc2NhbGUgPSBhdG9pKFBRZ2V0dmFsdWUocmVzLCAwLCAwKSk7DQo= --8323329-1651769787-1432287202=:30229 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --8323329-1651769787-1432287202=:30229--