pgsql: Fix identation.

2024-08-26 Thread Masahiko Sawada
Fix identation. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/7229ebe011dff3f418251a4836f6d098923aa1e1 Modified Files -- src/backend/replication/logical/reorderbuffer.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

pgsql: Fix identation.

2024-08-26 Thread Masahiko Sawada
Fix identation. Branch -- REL_17_STABLE Details --- https://git.postgresql.org/pg/commitdiff/c739ae9e288c095cfe1b91ce27a2f2c075ed5da4 Modified Files -- src/backend/replication/logical/reorderbuffer.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

Re: pgsql: Restrict accesses to non-system views and foreign tables during

2024-08-26 Thread Masahiko Sawada
On Mon, Aug 26, 2024 at 7:14 AM Peter Eisentraut wrote: > > On 05.08.24 15:07, Masahiko Sawada wrote: > > To address this, pg_dump now utilizes the newly introduced > > restrict_nonsystem_relation_kind GUC parameter to restrict the > > accesses to non-system views and foreign tables during the dum

pgsql: Fix memory counter update in ReorderBuffer.

2024-08-26 Thread Masahiko Sawada
Fix memory counter update in ReorderBuffer. Commit 5bec1d6bc5e changed the memory usage updates of the ReorderBufferTXN to zero all at once by subtracting txn->size, rather than updating it for each change. However, if TOAST reconstruction data remained in the transaction when freeing it, there we

pgsql: Fix memory counter update in ReorderBuffer.

2024-08-26 Thread Masahiko Sawada
Fix memory counter update in ReorderBuffer. Commit 5bec1d6bc5e changed the memory usage updates of the ReorderBufferTXN to zero all at once by subtracting txn->size, rather than updating it for each change. However, if TOAST reconstruction data remained in the transaction when freeing it, there we

pgsql: Fix nbtree lookahead overflow bug.

2024-08-26 Thread Peter Geoghegan
Fix nbtree lookahead overflow bug. Add bounds checking to nbtree's lookahead/skip-within-a-page mechanism. Otherwise it's possible for cases with lots of before-array-keys tuples to overflow an int16 variable, causing the mechanism to generate an out of bounds page offset number. Oversight in com

pgsql: Fix nbtree lookahead overflow bug.

2024-08-26 Thread Peter Geoghegan
Fix nbtree lookahead overflow bug. Add bounds checking to nbtree's lookahead/skip-within-a-page mechanism. Otherwise it's possible for cases with lots of before-array-keys tuples to overflow an int16 variable, causing the mechanism to generate an out of bounds page offset number. Oversight in com

Re: pgsql: Restrict accesses to non-system views and foreign tables during

2024-08-26 Thread Peter Eisentraut
On 05.08.24 15:07, Masahiko Sawada wrote: To address this, pg_dump now utilizes the newly introduced restrict_nonsystem_relation_kind GUC parameter to restrict the accesses to non-system views and foreign tables during the dump process. This new GUC parameter is added to back branches too, but th

pgsql: pg_upgrade: Message style improvements

2024-08-26 Thread Peter Eisentraut
pg_upgrade: Message style improvements Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/dbe37f1adb9fd10dc273ccf50816895360bcbc15 Modified Files -- src/bin/pg_upgrade/check.c| 8 src/bin/pg_upgrade/info.c | 4 ++-- sr

pgsql: pg_upgrade: Message style improvements

2024-08-26 Thread Peter Eisentraut
pg_upgrade: Message style improvements Branch -- REL_17_STABLE Details --- https://git.postgresql.org/pg/commitdiff/5e58107b0bb5a10b36ba4af4a9f82e6254d75e9f Modified Files -- src/bin/pg_upgrade/check.c| 8 src/bin/pg_upgrade/info.c | 4

pgsql: Fix compiler warning in mul_var_short().

2024-08-26 Thread Dean Rasheed
Fix compiler warning in mul_var_short(). Some compilers (e.g., gcc before version 7) mistakenly think "carry" might be used uninitialized. Reported by Tom Lane, per various buildfarm members, e.g. arowana. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/7cac6307a43