pgsql: Set readline-relevant ENV vars in interactive_psql(), not caller

2023-12-23 Thread Tom Lane
Set readline-relevant ENV vars in interactive_psql(), not caller. Commit 664d75753 pulled 010_tab_completion.pl's infrastructure for invoking an interactive psql session out into a generally-useful test function, but it didn't move enough stuff. We need to set up various environment variables tha

pgsql: Set readline-relevant ENV vars in interactive_psql(), not caller

2023-12-23 Thread Tom Lane
Set readline-relevant ENV vars in interactive_psql(), not caller. Commit 664d75753 pulled 010_tab_completion.pl's infrastructure for invoking an interactive psql session out into a generally-useful test function, but it didn't move enough stuff. We need to set up various environment variables tha

pgsql: pgbench: Fix overflow in table populating when rows >= 2^31-1

2023-12-23 Thread Michael Paquier
pgbench: Fix overflow in table populating when rows >= 2^31-1 Using a scale factor large enough so as the number of rows to insert gets larger than INT32_MAX would cause an infinite loop in initPopulateTable(), preventing pgbench to finish its initialization. Oversight in e35cc3b3f2d0 that has re