pgsql: Fix: Don't strip $libdir from nested module_pathnames

2025-08-27 Thread Peter Eisentraut
Fix: Don't strip $libdir from nested module_pathnames This patch fixes a bug in how 'load_external_function' handles '$libdir/ prefixes in module paths. Previously, 'load_external_function' would unconditionally strip '$libdir/' from the beginning of the 'filename' string. This caused an issue w

pgsql: Fix: Don't strip $libdir from nested module_pathnames

2025-08-27 Thread Peter Eisentraut
Fix: Don't strip $libdir from nested module_pathnames This patch fixes a bug in how 'load_external_function' handles '$libdir/ prefixes in module paths. Previously, 'load_external_function' would unconditionally strip '$libdir/' from the beginning of the 'filename' string. This caused an issue w

pgsql: aio: Stop using enum bitfields due to bad code generation

2025-08-27 Thread Andres Freund
aio: Stop using enum bitfields due to bad code generation During an investigation into rather odd aio related errors on macos, observed by Alexander and Konstantin, we started to wonder if bitfield access is related to the error. At the moment it looks like it is related, we cannot reproduce the f

pgsql: aio: Stop using enum bitfields due to bad code generation

2025-08-27 Thread Andres Freund
aio: Stop using enum bitfields due to bad code generation During an investigation into rather odd aio related errors on macos, observed by Alexander and Konstantin, we started to wonder if bitfield access is related to the error. At the moment it looks like it is related, we cannot reproduce the f

pgsql: Improve objectNamesToOids() comment

2025-08-27 Thread Peter Eisentraut
Improve objectNamesToOids() comment Commit d31bbfb6590 removed the comment at objectNamesToOids() that there is no locking, because that commit added locking. But to fix all the problems, we'd still need a stronger lock. So put the comment back with more a detailed explanation. Co-authored-by:

pgsql: Put back intra-grant-inplace.spec test coverage

2025-08-27 Thread Peter Eisentraut
Put back intra-grant-inplace.spec test coverage Commit d31bbfb6590 lost some test coverage, because the situation being tested, a concurrent DROP, cannot happen anymore. Put the test coverage back with a bit of a trick, by deleting directly from the catalog table. Co-authored-by: Noah Misch Rev

pgsql: Improve objectNamesToOids() comment

2025-08-27 Thread Peter Eisentraut
Improve objectNamesToOids() comment Commit d31bbfb6590 removed the comment at objectNamesToOids() that there is no locking, because that commit added locking. But to fix all the problems, we'd still need a stronger lock. So put the comment back with more a detailed explanation. Co-authored-by:

pgsql: Put back intra-grant-inplace.spec test coverage

2025-08-27 Thread Peter Eisentraut
Put back intra-grant-inplace.spec test coverage Commit d31bbfb6590 lost some test coverage, because the situation being tested, a concurrent DROP, cannot happen anymore. Put the test coverage back with a bit of a trick, by deleting directly from the catalog table. Co-authored-by: Noah Misch Rev