Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZT8r8-0006Ve-8u for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Aug 2015 13:29:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZT8r7-0005RW-R0 for pgsql-bugs@arkaria.postgresql.org; Sat, 22 Aug 2015 13:29:09 +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 1ZT8r7-0005RE-6D for pgsql-bugs@postgresql.org; Sat, 22 Aug 2015 13:29:09 +0000 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZT8r0-0007y0-5j for pgsql-bugs@postgresql.org; Sat, 22 Aug 2015 13:29:08 +0000 Received: by widdq5 with SMTP id dq5so35820059wid.0 for ; Sat, 22 Aug 2015 06:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=26fFvE0xPIUM8zdX6sNT3VVT7uWEH/yKCBCI049UN7s=; b=AuiMMit5pzCbNpIZjQM9t905+5XzB6ZrAWFBASBUMm17iam8NRUWAxDL65wbmhGv5c S+RhiO89iF4tfmYy1spdbmKFkcRCyQy+sFx9WrtltB4dk3tmxJ2iXuV7MtVpCVJVneLe nQrPk22pa6ob6dmQs1vZrXBFyj2oCHBfvM7nUNQXFUUxt3qU2+IGW2JFkNVz49t9pnTe vKnEnj4ta1XCmJXtLZvw7vkdRLVDALN7b5JMDejxjVpJlGbXQVYA3gq4nXeGb1OXouoM ln+pCpkUf5hYAK6BbLBY064vFi7GkD5I1Uj5w7v5nOR30ZUuI3eLHIDnxA/0PC3QgIti y8eQ== X-Received: by 10.181.11.168 with SMTP id ej8mr14640844wid.83.1440250140468; Sat, 22 Aug 2015 06:29:00 -0700 (PDT) Received: from [10.32.105.28] ([31.221.87.81]) by smtp.gmail.com with ESMTPSA id n6sm7388264wix.1.2015.08.22.06.28.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Aug 2015 06:28:59 -0700 (PDT) Message-ID: <55D87918.6030805@iki.fi> Date: Sat, 22 Aug 2015 14:28:56 +0100 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Julien Rouhaud , 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> <55AA7BC9.6090307@dalibo.com> In-Reply-To: <55AA7BC9.6090307@dalibo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) 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 07/18/2015 05:16 PM, Julien Rouhaud wrote: > 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. Ok, committed. - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs