pgsql: Remove an obsolete comment in gistinsert()

2024-11-06 Thread Michael Paquier
Remove an obsolete comment in gistinsert() This is inconsistent since 1f7ef548ec2e where the definition of gistFormTuple() has changed. Author: Tender Wang Reviewed-by: Aleksander Alekseev Discussion: https://postgr.es/m/CAHewXNkjU95_HdioDVU=5yBq_Xt=GfBv=od-0oktia006pw...@mail.gmail.com Branch

pgsql: Replicate generated columns when 'publish_generated_columns' is

2024-11-06 Thread Amit Kapila
Replicate generated columns when 'publish_generated_columns' is set. This patch builds on the work done in commit 745217a051 by enabling the replication of generated columns alongside regular column changes through a new publication parameter: publish_generated_columns. Example usage: CREATE PUBL

pgsql: Improve handling of empty query results in BackgroundPsql::query

2024-11-06 Thread Michael Paquier
Improve handling of empty query results in BackgroundPsql::query() A newline is not added at the end of an empty query result, causing the banner of the hardcoded \echo to not be discarded. This would reflect on scripts that expect an empty result by showing the "QUERY_SEPARATOR" in the output re

pgsql: Fix lc_collate_is_c() when LC_COLLATE != LC_CTYPE.

2024-11-06 Thread Jeff Davis
Fix lc_collate_is_c() when LC_COLLATE != LC_CTYPE. An unfortunate typo in commit 2d819a08a1 can cause wrong results when the default collation provider is libc, LC_CTYPE=C, and LC_COLLATE is a real locale. Users with this combination of settings must REINDEX all affected indexes. The same typo ca

pgsql: Monkey-patch LLVM code to fix ARM relocation bug.

2024-11-06 Thread Thomas Munro
Monkey-patch LLVM code to fix ARM relocation bug. Supply a new memory manager for RuntimeDyld, to avoid crashes in generated code caused by memory placement that can overflow a 32 bit data type. This is a drop-in replacement for the llvm::SectionMemoryManager class in the LLVM library, with Micha

pgsql: Monkey-patch LLVM code to fix ARM relocation bug.

2024-11-06 Thread Thomas Munro
Monkey-patch LLVM code to fix ARM relocation bug. Supply a new memory manager for RuntimeDyld, to avoid crashes in generated code caused by memory placement that can overflow a 32 bit data type. This is a drop-in replacement for the llvm::SectionMemoryManager class in the LLVM library, with Micha

pgsql: Monkey-patch LLVM code to fix ARM relocation bug.

2024-11-06 Thread Thomas Munro
Monkey-patch LLVM code to fix ARM relocation bug. Supply a new memory manager for RuntimeDyld, to avoid crashes in generated code caused by memory placement that can overflow a 32 bit data type. This is a drop-in replacement for the llvm::SectionMemoryManager class in the LLVM library, with Micha

pgsql: doc: Remove event trigger firing matrix

2024-11-06 Thread Peter Eisentraut
doc: Remove event trigger firing matrix This is difficult to maintain accurately, and it was probably already somewhat incorrect, especially in the sql_drop and table_rewrite categories. The prior section already documented which DDL commands are *not* supported (which was also slightly outdated)

pgsql: Find invalid databases during upgrade check stage

2024-11-06 Thread Daniel Gustafsson
Find invalid databases during upgrade check stage Before continuing with the check start by checking that all databases allow connections to avoid a hard fail without proper error reporting. Inspired by a larger patch by Thomas Krennwallner. Discussion: https://postgr.es/m/f9315bf0-e03e-4490-9f

pgsql: Monkey-patch LLVM code to fix ARM relocation bug.

2024-11-06 Thread Thomas Munro
Monkey-patch LLVM code to fix ARM relocation bug. Supply a new memory manager for RuntimeDyld, to avoid crashes in generated code caused by memory placement that can overflow a 32 bit data type. This is a drop-in replacement for the llvm::SectionMemoryManager class in the LLVM library, with Micha

pgsql: Monkey-patch LLVM code to fix ARM relocation bug.

2024-11-06 Thread Thomas Munro
Monkey-patch LLVM code to fix ARM relocation bug. Supply a new memory manager for RuntimeDyld, to avoid crashes in generated code caused by memory placement that can overflow a 32 bit data type. This is a drop-in replacement for the llvm::SectionMemoryManager class in the LLVM library, with Micha

pgsql: Monkey-patch LLVM code to fix ARM relocation bug.

2024-11-06 Thread Thomas Munro
Monkey-patch LLVM code to fix ARM relocation bug. Supply a new memory manager for RuntimeDyld, to avoid crashes in generated code caused by memory placement that can overflow a 32 bit data type. This is a drop-in replacement for the llvm::SectionMemoryManager class in the LLVM library, with Micha

pgsql: Monkey-patch LLVM code to fix ARM relocation bug.

2024-11-06 Thread Thomas Munro
Monkey-patch LLVM code to fix ARM relocation bug. Supply a new memory manager for RuntimeDyld, to avoid crashes in generated code caused by memory placement that can overflow a 32 bit data type. This is a drop-in replacement for the llvm::SectionMemoryManager class in the LLVM library, with Micha

pgsql: Remove unused variable

2024-11-06 Thread Daniel Gustafsson
Remove unused variable The low variable has not been used since it was added in d168b666823 and can be safely removed. The variable is present in the Sedgewick paper "Analysis of Shellsort and Related Algorithms" as a parameter to the shellsort function, but our implementation does not use it. Re

pgsql: Remove unused #include's from bin .c files

2024-11-06 Thread Peter Eisentraut
Remove unused #include's from bin .c files as determined by IWYU Similar to commit dbbca2cf299, but for bin and some related files. Discussion: https://www.postgresql.org/message-id/flat/0df1d5b1-8ca8-4f84-93be-121081bde049%40eisentraut.org Branch -- master Details --- https://git.pos