From: Duncan Smith <Duncan@xrtc.net>
To: pgsql-bugs@postgresql.org
Subject: Wire protocol encoding for 'inet' type is defined unreliably
Date: Wed, 25 Mar 2015 15:33:38 -0700
Message-ID: <1427322818.3613692.245294397.12EB3E23@webmail.messagingengine.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Hi,
I noticed today that the network encoding of the 'inet' type uses values
derived from the system header file <sys/socket.h> to tag whether the
address is IPv4 or IPv6.
In particular, <src/include/utils/inet.h> 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
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: Duncan@xrtc.net
Subject: Re: Wire protocol encoding for 'inet' type is defined unreliably
In-Reply-To: <1427322818.3613692.245294397.12EB3E23@webmail.messagingengine.com>
References: <1427322818.3613692.245294397.12EB3E23@webmail.messagingengine.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