Re: Signed-ness of ints is unclear in FE-BE protocol docs
От | Euler Taveira |
---|---|
Тема | Re: Signed-ness of ints is unclear in FE-BE protocol docs |
Дата | |
Msg-id | CAH503wBwC8A7DbDYUXRqW1ZAHKpj+D9bN7hcgszvP_1FzXbs_Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Signed-ness of ints is unclear in FE-BE protocol docs (Shay Rojansky <roji@roji.org>) |
Список | pgsql-docs |
On Thu, 11 Jun 2020 at 15:07, Shay Rojansky <roji@roji.org> wrote:
> Second, across the protocol docs, rather than using Int32 and Int64, which
> generally look like they're signed (depending on which language you're
> coming from), I'd consider using UInt32/UInt64, which are unambiguous with
> regards to signed-ness.
Well, they are actually signed, so I'm confused why you think we should
change the documentation to unsigned.Interesting... I'm not 100% sure, but I recently received a report that the WAL coordinates in XLogData (https://www.postgresql.org/docs/current/protocol-replication.html) are unsigned longs, is that a mistake? Are you saying all values in the protocol are always signed?
- The starting point of the WAL data in this message, given in
- XLogRecPtr format.
+ The starting point of the WAL data in this message.
- XLogRecPtr format.
+ The starting point of the WAL data in this message.
but it was removed for an unknown reason.
--
Euler Taveira http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-docs по дате отправления: