pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <julien.rouhaud@dalibo.com>
To: Fabien COELHO <coelho@cri.ensmp.fr>
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, 18 Jul 2015 18:16:09 +0200
Message-ID: <55AA7BC9.6090307@dalibo.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1507181347020.6263@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (23+ messages)  latest in thread

Message-ID: <55AA7BC9.6090307@dalibo.com>
Permalink:  ../55AA7BC9.6090307@dalibo.com/
Also on:    postgresql.org/message-id/55AA7BC9.6090307@dalibo.com

 · 

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: julien.rouhaud@dalibo.com, coelho@cri.ensmp.fr, 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: <55AA7BC9.6090307@dalibo.com>
  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>

* 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