pgsql: Disallow modifying statistics on system columns.

2024-11-22 Thread Jeff Davis
Disallow modifying statistics on system columns. Reported-by: Heikki Linnakangas Discussion: https://postgr.es/m/df3e1c41-4e6c-40ad-9636-98deefe48...@iki.fi Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/869ee4f10eca2acda3d2210198a46d5029a569fc Modified Files

pgsql: Add INT64_HEX_FORMAT and UINT64_HEX_FORMAT to c.h.

2024-11-22 Thread Nathan Bossart
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 ma

pgsql: Add a couple of recent commits to .git-blame-ignore-revs.

2024-11-22 Thread Nathan Bossart
Add a couple of recent commits to .git-blame-ignore-revs. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/8589876b796e1b78ccb38c3557f648f2b5f336ba Modified Files -- .git-blame-ignore-revs | 6 ++ 1 file changed, 6 insertions(+)

pgsql: Make the memory layout of Port struct independent of USE_OPENSSL

2024-11-22 Thread Heikki Linnakangas
Make the memory layout of Port struct independent of USE_OPENSSL Commit d39a49c1e4 added new fields to the struct, but missed the "keep these last" comment on the previous fields. Add placeholder variables so that the offsets of the fields are the same whether you build with USE_OPENSSL or not. Th

pgsql: Make the memory layout of Port struct independent of USE_OPENSSL

2024-11-22 Thread Heikki Linnakangas
Make the memory layout of Port struct independent of USE_OPENSSL Commit d39a49c1e4 added new fields to the struct, but missed the "keep these last" comment on the previous fields. Add placeholder variables so that the offsets of the fields are the same whether you build with USE_OPENSSL or not. Th

pgsql: Fix data loss when restarting the bulk_write facility

2024-11-22 Thread Heikki Linnakangas
Fix data loss when restarting the bulk_write facility If a user started a bulk write operation on a fork with existing data to append data in bulk, the bulk_write machinery would zero out all previously written pages up to the last page written by the new bulk_write operation. This is not an issu

pgsql: Fix data loss when restarting the bulk_write facility

2024-11-22 Thread Heikki Linnakangas
Fix data loss when restarting the bulk_write facility If a user started a bulk write operation on a fork with existing data to append data in bulk, the bulk_write machinery would zero out all previously written pages up to the last page written by the new bulk_write operation. This is not an issu

pgsql: Use auxv to check for CRC32 instructions on ARM.

2024-11-22 Thread Thomas Munro
Use auxv to check for CRC32 instructions on ARM. Previously we probed for CRC32 instructions by testing if they caused SIGILL. Some have expressed doubts about that technique, the Linux documentation advises not to use it, and it's not exactly beautiful. Now that more operating systems expose CPU