pgsql: Check slot->restart_lsn validity in a few more places

2020-04-28 Thread Alvaro Herrera
Check slot->restart_lsn validity in a few more places Lack of these checks could cause visible misbehavior, including assertion failures. This was missed in commit c6550776394e, whereby restart_lsn becomes invalid when the size limit is exceeded. Also reword some existing error messages, and add

pgsql: Add LP_DEAD deletion of a posting list tuple test.

2020-04-28 Thread Peter Geoghegan
Add LP_DEAD deletion of a posting list tuple test. Make sure that we have test coverage of the posting list tuple path within _bt_xid_horizon(). Per off-list complaint from Andres Freund. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/52b164c5a00095a34685e66bf64b0

pgsql: Add missing gettext triggers

2020-04-28 Thread Peter Eisentraut
Add missing gettext triggers Some translatable strings have been moved to scanner_yyerror(), so we need to add that, too. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/6baa17fbd1a76cd4056168fa718b7e7fd65748ec Modified Files -- src/backend/nls.mk | 10

pgsql: Fix definition of pg_statio_all_tables view

2020-04-28 Thread Alexander Korotkov
Fix definition of pg_statio_all_tables view pg_statio_all_tables view appears to have a wrong grouping. As the result numbers of toast index blocks read and hit were multiplied to the number of table indexes. This commit fixes the view definition. Backpatching this appears difficult. We don't