Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YayoF-0004fV-Km for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Mar 2015 03:50:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YayoE-0007oQ-VV for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Mar 2015 03:50:19 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yatru-0002DQ-76 for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 22:33:46 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yatrp-000110-K1 for pgsql-bugs@postgresql.org; Wed, 25 Mar 2015 22:33:44 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 656ED20711 for ; Wed, 25 Mar 2015 18:33:36 -0400 (EDT) Received: from web5 ([10.202.2.215]) by compute2.internal (MEProxy); Wed, 25 Mar 2015 18:33:39 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=xrtc.net; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=mesmtp; bh=6ejeWmxJuRfXkc35oZ+w6zQCUhA=; b=iz7vYNNX7vgsmDf3F/OiA2WCRGwL h8taY4JYzvB8TcqHpU2VaCLOrJaG4f+d9Es+W9gXmjGET4SLQMd33y+HmLqh16Wy d8jwBOKyg2YJxgCB45YBVdp7AAKlBDlZilA1+k+/FKzb+GPz/RrRjh4nsLGJyu6B YSnZRlqsWPa7hnY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:subject :date; s=smtpout; bh=6ejeWmxJuRfXkc35oZ+w6zQCUhA=; b=HRFqgjOPcAG 59FTcAvcOK+y/waq4NESaAcsho4qlvhf94OAxXAEy5StWTTwxCvCi7DfcMqFDPCW c8VxUvy7isgoMyvOgJvWa7jxjcacYX4aRDdNeqU5kvosJPhlBTngd8A0fw3xgC6o x/eU9L7M5M0Xfs679Hf7AQW6wJr3ZBQs= Received: by web5.nyi.internal (Postfix, from userid 99) id EC2D8AE6879; Wed, 25 Mar 2015 18:33:38 -0400 (EDT) Message-Id: <1427322818.3613692.245294397.12EB3E23@webmail.messagingengine.com> X-Sasl-Enc: 5ZF1dnZIEnjVjdGFxs1EFoLB00U8X1xUFQpJ/7SnOQRm 1427322818 From: Duncan Smith To: pgsql-bugs@postgresql.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-f437beda Subject: Wire protocol encoding for 'inet' type is defined unreliably Date: Wed, 25 Mar 2015 15:33:38 -0700 X-Pg-Spam-Score: -1.3 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, I noticed today that the network encoding of the 'inet' type uses values derived from the system header file to tag whether the address is IPv4 or IPv6. In particular, defines PGSQL_AF_INET to be AF_INET, which is 2 on my system. Wouldn't it be better to use a more constant constant for this purpose? -- Duncan Smith -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs