pgsql: Fix assorted error-cleanup bugs in SSL min/max protocol version

2020-02-02 Thread Tom Lane
Fix assorted error-cleanup bugs in SSL min/max protocol version code. The error exits added to initialize_SSL() failed to clean up the partially-built SSL_context, and some of them also leaked the result of SSLerrmessage(). Make them match other error-handling cases in that function. The error e

pgsql: Revert commit 56bc82a511.

2020-02-02 Thread Fujii Masao
Revert commit 56bc82a511. This commit reverts the fix "Make inherited TRUNCATE perform access permission checks on parent table only" only in the back branches. It's not hard to imagine that there are some applications expecting the old behavior and the fix breaks their security. To avoid this co

pgsql: Revert commit 606f350de9.

2020-02-02 Thread Fujii Masao
Revert commit 606f350de9. This commit reverts the fix "Make inherited TRUNCATE perform access permission checks on parent table only" only in the back branches. It's not hard to imagine that there are some applications expecting the old behavior and the fix breaks their security. To avoid this co

pgsql: Revert commit 4b96c03a0a.

2020-02-02 Thread Fujii Masao
Revert commit 4b96c03a0a. This commit reverts the fix "Make inherited TRUNCATE perform access permission checks on parent table only" only in the back branches. It's not hard to imagine that there are some applications expecting the old behavior and the fix breaks their security. To avoid this co

pgsql: Revert commit 928e755d22.

2020-02-02 Thread Fujii Masao
Revert commit 928e755d22. This commit reverts the fix "Make inherited TRUNCATE perform access permission checks on parent table only" only in the back branches. It's not hard to imagine that there are some applications expecting the old behavior and the fix breaks their security. To avoid this co

pgsql: Revert commit a5b652f3a0.

2020-02-02 Thread Fujii Masao
Revert commit a5b652f3a0. This commit reverts the fix "Make inherited TRUNCATE perform access permission checks on parent table only" only in the back branches. It's not hard to imagine that there are some applications expecting the old behavior and the fix breaks their security. To avoid this co

pgsql: Revert commit de0177788b.

2020-02-02 Thread Fujii Masao
Revert commit de0177788b. This commit reverts the fix "Make inherited TRUNCATE perform access permission checks on parent table only" only in the back branches. It's not hard to imagine that there are some applications expecting the old behavior and the fix breaks their security. To avoid this co

pgsql: Add declaration-level assertions for compile-time checks

2020-02-02 Thread Michael Paquier
Add declaration-level assertions for compile-time checks Those new assertions can be used at file scope, outside of any function for compilation checks. This commit provides implementations for C and C++, and fallback implementations. Author: Peter Smith Reviewed-by: Andres Freund, Kyotaro Horig