Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZTEWK-0005Hz-8W for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Aug 2015 19:32:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZTEWJ-0001L9-Co for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Aug 2015 19:32:03 +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 1ZTEVg-0000eh-IF for pgsql-bugs@postgresql.org; Sat, 22 Aug 2015 19:31:24 +0000 Received: from jiboia.ensmp.fr ([194.214.158.137]) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZTEVZ-000555-20 for pgsql-bugs@postgresql.org; Sat, 22 Aug 2015 19:31:22 +0000 Received: from cri.ensmp.fr (244.26.219.88.rev.sfr.net [88.219.26.244]) (authenticated bits=0) by jiboia.ensmp.fr (8.15.2/8.15.1/JMMC-22/Oct/2013) with ESMTPSA id t7MJUrcr023474 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 22 Aug 2015 21:31:00 +0200 Date: Sat, 22 Aug 2015 21:30:52 +0200 (CEST) From: Fabien COELHO X-X-Sender: fabien@sto To: Heikki Linnakangas cc: Julien Rouhaud , Tom Lane , Guillaume Lelarge , mail@bwe.im, Oleksandr Shulgin , PostgreSQL Bugs List Subject: Re: BUG #12379: pgbench should hint to pgbench -i In-Reply-To: <55D87918.6030805@iki.fi> 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> <55AA32E0.7070006@dalibo.com> <55AA7BC9.6090307@dalibo.com> <55D87918.6030805@iki.fi> 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 55D8CDED.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: 55D8CDED.000 from 244.26.219.88.rev.sfr.net/244.26.219.88.rev.sfr.net/88.219.26.244/cri.ensmp.fr/ X-Pg-Spam-Score: -2.8 (--) 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 Heikki, >>>> 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. > > Ok, committed. Thanks. Note that the author of the final version of the patch is mostly Julien, who implemented Tom's suggested improvement, rather than myself. -- Fabien. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs