Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZGUmd-0001Ct-SS for pgsql-bugs@arkaria.postgresql.org; Sat, 18 Jul 2015 16:16:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZGUmd-0004Ca-6s for pgsql-bugs@arkaria.postgresql.org; Sat, 18 Jul 2015 16:16:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZGUmc-0004CT-Kf for pgsql-bugs@postgresql.org; Sat, 18 Jul 2015 16:16:14 +0000 Received: from [212.85.157.144] (helo=mimolette.dalibo.net) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZGUmZ-0005S7-Oq for pgsql-bugs@postgresql.org; Sat, 18 Jul 2015 16:16:13 +0000 Received: from [192.168.0.4] (aur75-1-78-192-238-147.fbxo.proxad.net [78.192.238.147]) by mimolette.dalibo.net (Postfix) with ESMTPSA id 952D31F10399; Sat, 18 Jul 2015 18:16:09 +0200 (CEST) Message-ID: <55AA7BC9.6090307@dalibo.com> Date: Sat, 18 Jul 2015 18:16:09 +0200 From: Julien Rouhaud User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Fabien COELHO CC: Tom Lane , Guillaume Lelarge , mail@bwe.im, Oleksandr Shulgin , PostgreSQL Bugs List Subject: Re: BUG #12379: pgbench should hint to pgbench -i 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> <55AA32E0.7070006@dalibo.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 212.85.157.144 (failed) X-Pg-Spam-Score: 0.2 (/) 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 On 18/07/2015 13:49, Fabien COELHO wrote: > > Hello Julien, > >> Here's a v7 patch which display the hint only if SQLSTATE is >> ERRCODE_UNDEFINED_TABLE and use the message Tom suggested, as there >> wasn't any better suggestion or strong objection with it in the other >> thread. > > I'm wondering why you added the define. Isn't-there some convenient > include to get errcode definitions? > IIRC correctly, you have to include postgres.h for that. I supposed it was better to define it than adding such an include, since it shouldn't change and it's already done like this in vacuumdb.c. -- Julien Rouhaud http://dalibo.com - http://dalibo.org -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs