Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 73B9F632D5F for ; Thu, 15 Jul 2010 12:58:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 78601-05 for ; Thu, 15 Jul 2010 15:58:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 45493632D49 for ; Thu, 15 Jul 2010 12:58:11 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o6FFw6XG006246; Thu, 15 Jul 2010 11:58:07 -0400 (EDT) To: Stephen Frost cc: Magnus Hagander , Christopher Head , pgsql-bugs Subject: Re: BUG #5559: Full SSL verification fails when hostaddr provided In-reply-to: <20100715125911.GT21875@tamriel.snowman.net> References: <6811.1279123338@sss.pgh.pa.us> <7342.1279124972@sss.pgh.pa.us> <20100714173942.GM21875@tamriel.snowman.net> <9371.1279130114@sss.pgh.pa.us> <20100714183240.GO21875@tamriel.snowman.net> <10950.1279135209@sss.pgh.pa.us> <20100714212805.GP21875@tamriel.snowman.net> <18347.1279143321@sss.pgh.pa.us> <20100714215020.GR21875@tamriel.snowman.net> <19143.1279145790@sss.pgh.pa.us> <20100715125911.GT21875@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Thu, 15 Jul 2010 08:59:11 -0400" Date: Thu, 15 Jul 2010 11:58:06 -0400 Message-ID: <6245.1279209486@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/115 X-Sequence-Number: 27459 Stephen Frost writes: > Reviewing what's currently on developer.postgresql.org, here's what I > think the docs would read and what the associated code behavior should > be (which I think it's pretty close to already, but perhaps not > entirely..): I think this is overcomplicated and probably wrong in detail. I suggest that we document hostaddr as being an auxiliary field that is not intended to be the primary source of the host name, but merely saves libpq from having to do a forward DNS lookup. In some cases it will work to supply hostaddr without host, but in others it won't. We should also state that supplying it does not guarantee no DNS lookups occur, because these external auth libraries will do one anyway. regards, tom lane