pgsql: Fix ReorderBuffer memory overflow check.

2020-06-09 Thread Amit Kapila
Fix ReorderBuffer memory overflow check. Commit cec2edfa78 introduced logical_decoding_work_mem to limit ReorderBuffer memory usage. We spill the changes once the memory occupied by changes exceeds logical_decoding_work_mem. There was an assumption in the code that by evicting the largest (sub)tr

pgsql: Fix ReorderBuffer memory overflow check.

2020-06-09 Thread Amit Kapila
Fix ReorderBuffer memory overflow check. Commit cec2edfa78 introduced logical_decoding_work_mem to limit ReorderBuffer memory usage. We spill the changes once the memory occupied by changes exceeds logical_decoding_work_mem. There was an assumption in the code that by evicting the largest (sub)tr

pgsql: Spelling adjustments

2020-06-09 Thread Peter Eisentraut
Spelling adjustments similar to 0fd2a79a637f9f96b9830524823df0454e962f96 Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commitdiff/a5202889b4c78e8ffcdd8be35d59f0a7aa644f64 Modified Files -- contrib/pg_trgm/trgm_regexp.c | 4 ++-- src/back

pgsql: Spelling adjustments

2020-06-09 Thread Peter Eisentraut
Spelling adjustments similar to 0fd2a79a637f9f96b9830524823df0454e962f96 Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/350f47786c3444d822d6d27829dd6a5426487150 Modified Files -- contrib/pg_trgm/trgm_regexp.c | 4 ++-- src/backend/com

pgsql: Unify drop-by-OID functions

2020-06-09 Thread Peter Eisentraut
Unify drop-by-OID functions There are a number of Remove${Something}ById() functions that are essentially identical in structure and only different in which catalog they are working on. Refactor this to be one generic function. The information about which oid column, index, etc. to use was alrea

pgsql: Fix invalid function references in a few comments

2020-06-09 Thread David Rowley
Fix invalid function references in a few comments These appear to have been forgotten when the functions were renamed in 1fd687a03. Backpatch-through: 13, where the functions were renamed Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commitdiff/4d655f154565662cbd11f1

pgsql: Fix invalid function references in a few comments

2020-06-09 Thread David Rowley
Fix invalid function references in a few comments These appear to have been forgotten when the functions were renamed in 1fd687a03. Backpatch-through: 13, where the functions were renamed Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/b27c90bbe4a3d607f8fc6703c7183