Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5F40464FEA3 for ; Tue, 11 Nov 2008 11:04:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49150-01 for ; Tue, 11 Nov 2008 11:04:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from svr2.hagander.net (svr2.hagander.net [88.198.128.226]) by mail.postgresql.org (Postfix) with ESMTP id 6A44564FE23 for ; Tue, 11 Nov 2008 11:04:43 -0400 (AST) Received: from dynamic.hagander.net ([127.0.0.1]) (encrypted and authenticated) by svr2.hagander.net (Postfix) with ESMTP id 6C65ADCCE68; Tue, 11 Nov 2008 16:04:41 +0100 (CET) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mha-laptop.hagander.net (Postfix) with ESMTP id AEB191240A0; Tue, 11 Nov 2008 16:04:40 +0100 (CET) Message-ID: <49199F08.8050302@hagander.net> Date: Tue, 11 Nov 2008 16:04:40 +0100 From: Magnus Hagander User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: Tom Lane CC: PG Hackers Subject: Re: libpq with ssl vs psql without References: <49198742.2060906@hagander.net> <15027.1226410828@sss.pgh.pa.us> In-Reply-To: <15027.1226410828@sss.pgh.pa.us> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/783 X-Sequence-Number: 127495 Tom Lane wrote: > Magnus Hagander writes: >> I just noticed that if you have libpq with SSL support, but psql >> without, we don't print any SSL information at all. Would it be >> worthwhile to have it print that SSL is in use, even if we can't print >> the details about the connection? > > I think the use-case for this is nonexistent, but you can still sell the > change on the grounds of reducing the number of #ifdefs. > > It might be worth putting a comment in there, because people will wonder > what the heck this is about. > > /* this can only happen if libpq has SSL support and psql doesn't */ Done. //Magnus