mirror of
https://github.com/postgres/postgres.git
synced 2025-10-22 00:06:04 -04:00
This commit standardizes the output format for LSNs to ensure consistent representation across various tools and messages. Previously, LSNs were inconsistently printed as `%X/%X` in some contexts, while others used zero-padding. This often led to confusion when comparing. To address this, the LSN format is now uniformly set to `%X/%08X`, ensuring the lower 32-bit part is always zero-padded to eight hexadecimal digits. Author: Japin Li <japinli@hotmail.com> Reviewed-by: Masahiko Sawada <sawada.mshk@gmail.com> Reviewed-by: Álvaro Herrera <alvherre@kurilemu.de> Discussion: https://postgr.es/m/ME0P300MB0445CA53CA0E4B8C1879AF84B641A@ME0P300MB0445.AUSP300.PROD.OUTLOOK.COM
<!-- doc/src/sgml/README.non-ASCII --> Representation of non-ASCII characters -------------------------------------- Find non-ASCII characters using: grep --recursive --color='auto' -P '[\x80-\xFF]' . Convert to HTML4 named entity (&) escapes ----------------------------------------- We support several output formats: * html (supports all Unicode characters) * man (supports all Unicode characters) * pdf (supports only Latin-1 characters) * info While some output formatting tools support all Unicode characters, others only support Latin-1 characters. Specifically, the PDF rendering engine can only display Latin-1 characters; non-Latin-1 Unicode characters are displayed as "###". Therefore, in the SGML files, we can only use Latin-1 characters. We can use UTF8 representations of Latin-1 characters, or HTML entities of Latin-1 characters, e.g., Álvaro. Do not use UTF numeric character escapes (&#nnn;). When building the PDF docs, problem characters will appear as warnings. HTML entities official: http://www.w3.org/TR/html4/sgml/entities.html one page: http://www.zipcon.net/~swhite/docs/computers/browsers/entities_page.html other lists: http://www.zipcon.net/~swhite/docs/computers/browsers/entities.html http://www.zipcon.net/~swhite/docs/computers/browsers/entities_page.html https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references