pgsql: Detect the deadlocks between backends and the startup process.

2021-01-05 Thread Fujii Masao
Detect the deadlocks between backends and the startup process. The deadlocks that the recovery conflict on lock is involved in can happen between hot-standby backends and the startup process. If a backend takes an access exclusive lock on the table and which finally triggers the deadlock, that dea

pgsql: Detect the deadlocks between backends and the startup process.

2021-01-05 Thread Fujii Masao
Detect the deadlocks between backends and the startup process. The deadlocks that the recovery conflict on lock is involved in can happen between hot-standby backends and the startup process. If a backend takes an access exclusive lock on the table and which finally triggers the deadlock, that dea

pgsql: Detect the deadlocks between backends and the startup process.

2021-01-05 Thread Fujii Masao
Detect the deadlocks between backends and the startup process. The deadlocks that the recovery conflict on lock is involved in can happen between hot-standby backends and the startup process. If a backend takes an access exclusive lock on the table and which finally triggers the deadlock, that dea

pgsql: Detect the deadlocks between backends and the startup process.

2021-01-05 Thread Fujii Masao
Detect the deadlocks between backends and the startup process. The deadlocks that the recovery conflict on lock is involved in can happen between hot-standby backends and the startup process. If a backend takes an access exclusive lock on the table and which finally triggers the deadlock, that dea

pgsql: Detect the deadlocks between backends and the startup process.

2021-01-05 Thread Fujii Masao
Detect the deadlocks between backends and the startup process. The deadlocks that the recovery conflict on lock is involved in can happen between hot-standby backends and the startup process. If a backend takes an access exclusive lock on the table and which finally triggers the deadlock, that dea

pgsql: Detect the deadlocks between backends and the startup process.

2021-01-05 Thread Fujii Masao
Detect the deadlocks between backends and the startup process. The deadlocks that the recovery conflict on lock is involved in can happen between hot-standby backends and the startup process. If a backend takes an access exclusive lock on the table and which finally triggers the deadlock, that dea

pgsql: Fix typos in decode.c and logical.c.

2021-01-05 Thread Amit Kapila
Fix typos in decode.c and logical.c. Per report by Ajin Cherian in email: https://postgr.es/m/CAFPTHDYnRKDvzgDxoMn_CKqXA-D0MtrbyJvfvjBsO4G=uhd...@mail.gmail.com Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/e02e840ff7787d4798fca9f6a5b8b3657f45cf0c Modified Files

pgsql: doc: Fix description about default behavior of recovery_target_t

2021-01-05 Thread Fujii Masao
doc: Fix description about default behavior of recovery_target_timeline. The default value of recovery_target_timeline was changed in v12, but the description about the default behavior of that was not updated. Back-patch to v12 where the default behavior of recovery_target_timeline was changed.

pgsql: doc: Fix description about default behavior of recovery_target_t

2021-01-05 Thread Fujii Masao
doc: Fix description about default behavior of recovery_target_timeline. The default value of recovery_target_timeline was changed in v12, but the description about the default behavior of that was not updated. Back-patch to v12 where the default behavior of recovery_target_timeline was changed.

pgsql: doc: Fix description about default behavior of recovery_target_t

2021-01-05 Thread Fujii Masao
doc: Fix description about default behavior of recovery_target_timeline. The default value of recovery_target_timeline was changed in v12, but the description about the default behavior of that was not updated. Back-patch to v12 where the default behavior of recovery_target_timeline was changed.

pgsql: Promote --data-checksums to the common set of options in initdb

2021-01-05 Thread Michael Paquier
Promote --data-checksums to the common set of options in initdb --help This was previously part of the section dedicated to less common options, but it is an option commonly used these days. Author: Michael Banck Reviewed-by: Stephen Frost, Michael Paquier Discussion: https://postgr.es/m/d7938ac

pgsql: Revert unstable test cases from commit 7d80441d2.

2021-01-05 Thread Tom Lane
Revert unstable test cases from commit 7d80441d2. I momentarily forgot that the "owner" column wouldn't be stable in the buildfarm. Oh well, these tests weren't very valuable anyway. Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https

pgsql: Allow psql's \dt and \di to show TOAST tables and their indexes.

2021-01-05 Thread Tom Lane
Allow psql's \dt and \di to show TOAST tables and their indexes. Formerly, TOAST objects were unconditionally suppressed, but since \d is able to print them it's not very clear why these variants should not. Instead, use the same rules as for system catalogs: they can be seen if you write the 'S'

pgsql: Introduce a new GUC_REPORT setting "in_hot_standby".

2021-01-05 Thread Tom Lane
Introduce a new GUC_REPORT setting "in_hot_standby". Aside from being queriable via SHOW, this value is sent to the client immediately at session startup, and again later on if the server gets promoted to primary during the session. The immediate report will be used in an upcoming patch to avoid

pgsql: doc: improve NLS instruction wording

2021-01-05 Thread Bruce Momjian
doc: improve NLS instruction wording Reported-by: "Tang, Haiying" Discussion: https://postgr.es/m/bbbccf7a3c2d436e85d45869d612fd6b@G08CNEXMBPEKD05.g08.fujitsu.local Author: "Tang, Haiying" Backpatch-through: 9.5 Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commi

pgsql: doc: improve NLS instruction wording

2021-01-05 Thread Bruce Momjian
doc: improve NLS instruction wording Reported-by: "Tang, Haiying" Discussion: https://postgr.es/m/bbbccf7a3c2d436e85d45869d612fd6b@G08CNEXMBPEKD05.g08.fujitsu.local Author: "Tang, Haiying" Backpatch-through: 9.5 Branch -- REL9_6_STABLE Details --- https://git.postgresql.org/pg/commi

pgsql: doc: improve NLS instruction wording

2021-01-05 Thread Bruce Momjian
doc: improve NLS instruction wording Reported-by: "Tang, Haiying" Discussion: https://postgr.es/m/bbbccf7a3c2d436e85d45869d612fd6b@G08CNEXMBPEKD05.g08.fujitsu.local Author: "Tang, Haiying" Backpatch-through: 9.5 Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commi

pgsql: doc: improve NLS instruction wording

2021-01-05 Thread Bruce Momjian
doc: improve NLS instruction wording Reported-by: "Tang, Haiying" Discussion: https://postgr.es/m/bbbccf7a3c2d436e85d45869d612fd6b@G08CNEXMBPEKD05.g08.fujitsu.local Author: "Tang, Haiying" Backpatch-through: 9.5 Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/4

pgsql: doc: improve NLS instruction wording

2021-01-05 Thread Bruce Momjian
doc: improve NLS instruction wording Reported-by: "Tang, Haiying" Discussion: https://postgr.es/m/bbbccf7a3c2d436e85d45869d612fd6b@G08CNEXMBPEKD05.g08.fujitsu.local Author: "Tang, Haiying" Backpatch-through: 9.5 Branch -- REL9_5_STABLE Details --- https://git.postgresql.org/pg/commi

pgsql: doc: improve NLS instruction wording

2021-01-05 Thread Bruce Momjian
doc: improve NLS instruction wording Reported-by: "Tang, Haiying" Discussion: https://postgr.es/m/bbbccf7a3c2d436e85d45869d612fd6b@G08CNEXMBPEKD05.g08.fujitsu.local Author: "Tang, Haiying" Backpatch-through: 9.5 Branch -- REL_12_STABLE Details --- https://git.postgresql.org/pg/commi

pgsql: doc: improve NLS instruction wording

2021-01-05 Thread Bruce Momjian
doc: improve NLS instruction wording Reported-by: "Tang, Haiying" Discussion: https://postgr.es/m/bbbccf7a3c2d436e85d45869d612fd6b@G08CNEXMBPEKD05.g08.fujitsu.local Author: "Tang, Haiying" Backpatch-through: 9.5 Branch -- REL_10_STABLE Details --- https://git.postgresql.org/pg/commi

pgsql: Add an explicit cast to double when using fabs().

2021-01-05 Thread Dean Rasheed
Add an explicit cast to double when using fabs(). Commit bc43b7c2c0 used fabs() directly on an int variable, which apparently requires an explicit cast on some platforms. Per buildfarm. Branch -- REL_11_STABLE Details --- https://git.postgresql.org/pg/commitdiff/ab042d0108232d4b8b6a2b10

pgsql: Add an explicit cast to double when using fabs().

2021-01-05 Thread Dean Rasheed
Add an explicit cast to double when using fabs(). Commit bc43b7c2c0 used fabs() directly on an int variable, which apparently requires an explicit cast on some platforms. Per buildfarm. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/fead67c24ada8c6a4b661dec6f159dc

pgsql: Add an explicit cast to double when using fabs().

2021-01-05 Thread Dean Rasheed
Add an explicit cast to double when using fabs(). Commit bc43b7c2c0 used fabs() directly on an int variable, which apparently requires an explicit cast on some platforms. Per buildfarm. Branch -- REL_13_STABLE Details --- https://git.postgresql.org/pg/commitdiff/5777b6ea29a581f073c80ae4

pgsql: Add an explicit cast to double when using fabs().

2021-01-05 Thread Dean Rasheed
Add an explicit cast to double when using fabs(). Commit bc43b7c2c0 used fabs() directly on an int variable, which apparently requires an explicit cast on some platforms. Per buildfarm. Branch -- REL_12_STABLE Details --- https://git.postgresql.org/pg/commitdiff/740780a6157f0688829082de

pgsql: Add an explicit cast to double when using fabs().

2021-01-05 Thread Dean Rasheed
Add an explicit cast to double when using fabs(). Commit bc43b7c2c0 used fabs() directly on an int variable, which apparently requires an explicit cast on some platforms. Per buildfarm. Branch -- REL9_6_STABLE Details --- https://git.postgresql.org/pg/commitdiff/f0b9bada56f801fc9e70befb

pgsql: Add an explicit cast to double when using fabs().

2021-01-05 Thread Dean Rasheed
Add an explicit cast to double when using fabs(). Commit bc43b7c2c0 used fabs() directly on an int variable, which apparently requires an explicit cast on some platforms. Per buildfarm. Branch -- REL_10_STABLE Details --- https://git.postgresql.org/pg/commitdiff/0097193b17dd8e1dd8534700

pgsql: Fix numeric_power() when the exponent is INT_MIN.

2021-01-05 Thread Dean Rasheed
Fix numeric_power() when the exponent is INT_MIN. In power_var_int(), the computation of the number of significant digits to use in the computation used log(Abs(exp)), which isn't safe because Abs(exp) returns INT_MIN when exp is INT_MIN. Use fabs() instead of Abs(), so that the exponent is cast t

pgsql: Fix numeric_power() when the exponent is INT_MIN.

2021-01-05 Thread Dean Rasheed
Fix numeric_power() when the exponent is INT_MIN. In power_var_int(), the computation of the number of significant digits to use in the computation used log(Abs(exp)), which isn't safe because Abs(exp) returns INT_MIN when exp is INT_MIN. Use fabs() instead of Abs(), so that the exponent is cast t

pgsql: Fix numeric_power() when the exponent is INT_MIN.

2021-01-05 Thread Dean Rasheed
Fix numeric_power() when the exponent is INT_MIN. In power_var_int(), the computation of the number of significant digits to use in the computation used log(Abs(exp)), which isn't safe because Abs(exp) returns INT_MIN when exp is INT_MIN. Use fabs() instead of Abs(), so that the exponent is cast t

pgsql: Fix numeric_power() when the exponent is INT_MIN.

2021-01-05 Thread Dean Rasheed
Fix numeric_power() when the exponent is INT_MIN. In power_var_int(), the computation of the number of significant digits to use in the computation used log(Abs(exp)), which isn't safe because Abs(exp) returns INT_MIN when exp is INT_MIN. Use fabs() instead of Abs(), so that the exponent is cast t

pgsql: Fix numeric_power() when the exponent is INT_MIN.

2021-01-05 Thread Dean Rasheed
Fix numeric_power() when the exponent is INT_MIN. In power_var_int(), the computation of the number of significant digits to use in the computation used log(Abs(exp)), which isn't safe because Abs(exp) returns INT_MIN when exp is INT_MIN. Use fabs() instead of Abs(), so that the exponent is cast t

pgsql: Fix numeric_power() when the exponent is INT_MIN.

2021-01-05 Thread Dean Rasheed
Fix numeric_power() when the exponent is INT_MIN. In power_var_int(), the computation of the number of significant digits to use in the computation used log(Abs(exp)), which isn't safe because Abs(exp) returns INT_MIN when exp is INT_MIN. Use fabs() instead of Abs(), so that the exponent is cast t

pgsql: Test decoding of two-phase transactions during the build of a co

2021-01-05 Thread Amit Kapila
Test decoding of two-phase transactions during the build of a consistent snapshot. Commit a271a1b50e added the capability to allow decoding at prepare time. This adds an isolation testcase to test that decoding happens at commit time when the consistent snapshot state is reached after prepare but