pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <julien.rouhaud@dalibo.com>
To: Guillaume Lelarge <guillaume@lelarge.info>
To: Fabien COELHO <coelho@cri.ensmp.fr>
Cc: Oleksandr Shulgin <oleksandr.shulgin@zalando.de>
Cc: mail@bwe.im, PostgreSQL Bugs List <pgsql-bugs@postgresql.org>
Subject: Re: BUG #12379: pgbench should hint to pgbench -i
Date: Sun, 05 Jul 2015 18:47:42 +0200
Message-ID: <55995FAE.8070809@dalibo.com> (raw)
In-Reply-To: <CAECtzeVxR3zDJAcnzYrGu+ykUbU8DiY7w9_-TDToFY0ZSmOo-Q@mail.gmail.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>
	<CAECtzeVxR3zDJAcnzYrGu+ykUbU8DiY7w9_-TDToFY0ZSmOo-Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/07/2015 18:34, Guillaume Lelarge wrote:
> Le 5 juil. 2015 6:28 PM, "Fabien COELHO" <coelho@cri.ensmp.fr 
> <mailto:coelho@cri.ensmp.fr>> a écrit :
>> 
>> 
>> Hello Guillaume & Julien,
>> 
>> Thanks for the comments and the improvements!
>> 
>>>> I can't look at the code right now, but doesn't it use PQdb()
>>>> to get the name of the database? If it doesn't, it probably
>>>> should.
>>> 
>>> 
>>> I'm attaching a new version of the patch, which retrieves the
>>> actual database name once connected if needed. That only solves
>>> this message though, the other ones being displayed before the
>>> connection is
> available.
>> 
>> 
>> I'm not sure it is worth bothering with setting dbname which
>> seems not
> to be used afterwards anyway. I would suggest to coldly call PQdb
> on the connection for the error message and thus simplify the code,
> as attached.
>> 
> 
> That's fine with me.
> 

I totally agree. I mark the patch as ready for committer.

> -- Guillaume
> 


- -- 
Julien Rouhaud
http://dalibo.com - http://dalibo.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQEcBAEBAgAGBQJVmV+uAAoJELGaJ8vfEpOqTRIIAIyht/HdeR3OwlUfkWK1z26c
m7a4B/wpwy3AtYmO5yBkCEbSZmXtsZOvZM9gL0rcdeP0Jwh/MT+yu+utz+j58jwV
6TcdzJP4EkKjjQXjkCwdPtXin+Qy5s+zTBJ9gTJflmIKlCTFa3dvX0/VWeElVp2L
bO4bPQMknLhqkqfAlGSgb60xaFl2OxTqvrvea+W/hj49LxtBaOhgh83Pe8G/MaSj
zKXAsa0UHfD1QF+goCzOFPRe5OaXgNBIUbNzL11DsfwepAIZ5yr4SKGLS3F7gAvV
sWKh8aEG6+Ysof509IYbtBSIMCpdyL5niYE9GTKUqBzP4SH6t+XBYVT4nd+CfpI=
=j/Uq
-----END PGP SIGNATURE-----


-- 
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: <55995FAE.8070809@dalibo.com>
Permalink:  ../55995FAE.8070809@dalibo.com/
Also on:    postgresql.org/message-id/55995FAE.8070809@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, guillaume@lelarge.info, coelho@cri.ensmp.fr, oleksandr.shulgin@zalando.de
  Subject: Re: BUG #12379: pgbench should hint to pgbench -i
  In-Reply-To: <55995FAE.8070809@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> <CAECtzeVxR3zDJAcnzYrGu+ykUbU8DiY7w9_-TDToFY0ZSmOo-Q@mail.gmail.com> <55995FAE.8070809@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