pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: Julien Rouhaud <julien.rouhaud@dalibo.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Guillaume Lelarge <guillaume@lelarge.info>
Cc: mail@bwe.im, Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
Cc: PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12379: pgbench should hint to pgbench -i
Date: Sat, 22 Aug 2015 21:30:52 +0200 (CEST)
Message-ID: <alpine.DEB.2.10.1508222126270.11010@sto> (raw)
In-Reply-To: <55D87918.6030805@iki.fi>
References: <20141231105955.8014.38426@wrigleys.postgresql.org>
	<alpine.DEB.2.10.1503080851220.4406@sto>
	<alpine.DEB.2.10.1504260845160.6827@sto>
	<87oales6zm.fsf@ashulgin01.corp.ad.zalando.net>
	<alpine.DEB.2.10.1505221131480.30229@sto>
	<55984046.60901@dalibo.com>
	<CAECtzeWOm0JmJpDwM=woq8mfqfjPHOxLvSAaPrs=qOHvbWzxkw@mail.gmail.com>
	<559908D4.7020901@dalibo.com>
	<alpine.DEB.2.10.1507051821230.27775@sto>
	<23314.1436142811@sss.pgh.pa.us>
	<alpine.DEB.2.10.1507060709030.7427@sto>
	<55AA32E0.7070006@dalibo.com>
	<alpine.DEB.2.10.1507181347020.6263@sto>
	<55AA7BC9.6090307@dalibo.com>
	<55D87918.6030805@iki.fi>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>


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



view thread (23+ messages)

Message-ID: <alpine.DEB.2.10.1508222126270.11010@sto>
Permalink:  ../alpine.DEB.2.10.1508222126270.11010@sto/
Also on:    postgresql.org/message-id/alpine.DEB.2.10.1508222126270.11010@sto

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: coelho@cri.ensmp.fr, hlinnaka@iki.fi, julien.rouhaud@dalibo.com, tgl@sss.pgh.pa.us, guillaume@lelarge.info, oleksandr.shulgin@zalando.de
  Subject: Re: BUG #12379: pgbench should hint to pgbench -i
  In-Reply-To: <alpine.DEB.2.10.1508222126270.11010@sto>
  References: <20141231105955.8014.38426@wrigleys.postgresql.org> <alpine.DEB.2.10.1503080851220.4406@sto> <alpine.DEB.2.10.1504260845160.6827@sto> <87oales6zm.fsf@ashulgin01.corp.ad.zalando.net> <alpine.DEB.2.10.1505221131480.30229@sto> <55984046.60901@dalibo.com> <CAECtzeWOm0JmJpDwM=woq8mfqfjPHOxLvSAaPrs=qOHvbWzxkw@mail.gmail.com> <559908D4.7020901@dalibo.com> <alpine.DEB.2.10.1507051821230.27775@sto> <23314.1436142811@sss.pgh.pa.us> <alpine.DEB.2.10.1507060709030.7427@sto> <55AA32E0.7070006@dalibo.com> <alpine.DEB.2.10.1507181347020.6263@sto> <55AA7BC9.6090307@dalibo.com> <55D87918.6030805@iki.fi> <alpine.DEB.2.10.1508222126270.11010@sto>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox