postgresql/src/backend/utils
Nathan Bossart efdc7d7475 Add INT64_HEX_FORMAT and UINT64_HEX_FORMAT to c.h.
Like INT64_FORMAT and UINT64_FORMAT, these macros produce format
strings for 64-bit integers.  However, INT64_HEX_FORMAT and
UINT64_HEX_FORMAT generate the output in hexadecimal instead of
decimal.  Besides introducing these macros, this commit makes use
of them in several places.  This was originally intended to be part
of commit 5d6187d2a2, but I left it out because I felt there was a
nonzero chance that back-patching these new macros into c.h could
cause problems with third-party code.  We tend to be less cautious
with such changes in new major versions.

Note that UINT64_HEX_FORMAT was originally added in commit
ee1b30f128, but it was placed in test_radixtree.c, so it wasn't
widely available.  This commit moves UINT64_HEX_FORMAT to c.h.

Discussion: https://postgr.es/m/ZwQvtUbPKaaRQezd%40nathan
2024-11-22 12:41:57 -06:00
..
activity Add write_to_file to PgStat_KindInfo for pgstats kinds 2024-11-22 10:12:26 +09:00
adt Avoid assertion failure if a setop leaf query contains setops. 2024-11-20 12:03:47 -05:00
cache Add pg_constraint rows for not-null constraints 2024-11-08 13:28:48 +01:00
error Add INT64_HEX_FORMAT and UINT64_HEX_FORMAT to c.h. 2024-11-22 12:41:57 -06:00
fmgr Unify some error messages to ease work of translators 2024-09-04 14:53:18 +09:00
hash Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
init Fix per-session activation of ALTER {ROLE|DATABASE} SET role. 2024-11-15 20:39:56 -08:00
mb Remove dead generators for cyrillic encoding conversion tables 2024-07-29 20:38:19 +03:00
misc Fix per-session activation of ALTER {ROLE|DATABASE} SET role. 2024-11-15 20:39:56 -08:00
mmgr Ignore not-yet-defined Portals in pg_cursors view. 2024-10-06 16:03:48 -04:00
resowner Remove unused typedefs 2024-05-17 07:36:12 +02:00
sort Adjust tuplestore stats API 2024-09-12 16:02:01 +12:00
time Remove unused #include's from backend .c files 2024-03-04 12:02:20 +01:00
.gitignore Rearrange makefile rules for running Gen_fmgrtab.pl. 2018-05-03 17:54:18 -04:00
errcodes.txt Neaten up our choices of SQLSTATEs for XML-related errors. 2024-09-24 12:59:56 -04:00
Gen_dummy_probes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Gen_fmgrtab.pl Remove unused #include's from backend .c files 2024-10-27 08:26:50 +01:00
generate-errcodes.pl Update copyright for 2024 2024-01-03 20:49:05 -05:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
postprocess_dtrace.sed Update copyright for 2024 2024-01-03 20:49:05 -05:00
probes.d Update copyright for 2024 2024-01-03 20:49:05 -05:00