Wire protocol encoding for 'inet' type is defined unreliably

Поиск
Список
Период
Сортировка
От Duncan Smith
Тема Wire protocol encoding for 'inet' type is defined unreliably
Дата
Msg-id 1427322818.3613692.245294397.12EB3E23@webmail.messagingengine.com
обсуждение исходный текст
Ответы Re: Wire protocol encoding for 'inet' type is defined unreliably  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Pedro Gimeno
Дата:
Сообщение: Re: Re: BUG #12885: The result of casting a double to an integer depends on the database version
Следующее
От: zjwincek@oakland.edu
Дата:
Сообщение: BUG #12902: The PostgreSQL repository lacks the pg_top package.