Re: NegotiateProtocolVersion description

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: NegotiateProtocolVersion description
Дата
Msg-id 20250706.070753.2006294786940689439.ishii@postgresql.org
обсуждение исходный текст
Ответ на Re: NegotiateProtocolVersion description  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
> Add an example?  I like the wording as-is, though I can see your point.  I
> wouldn’t expect the returned value to be a fragment of a version in this
> context so minor just emphasizes that the client is applying a filter on
> the major version it supports.  I’d be ok with removing “minor” altogether.

Probably not necessary to remove "minor". It seems our document
consistently uses "minor protocol version" to mean the whole protocol
version, not a fragment.

Followings are my understanding;

major version (number):
The most significant 16 bits of the protocol version (i.e. 3)

minor version (number):
The least significant 16 bits of the protocol version (i.e. 2)

major protocol version:
The major version part of the protocol version. Only used in
NegotiateProtocolVersion.

minor protocol version:
The whole protocol version including minor version (3.2)

Best regards,
--
Tatsuo Ishii
SRA OSS K.K.
English: http://www.sraoss.co.jp/index_en/
Japanese:http://www.sraoss.co.jp



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