pgsql: Clean up some questionable usages of DatumGet* macros

2021-06-04 Thread David Rowley
Clean up some questionable usages of DatumGet* macros This tidies up some questionable coding which made use of DatumGetPointer() for Datums being passed into functions where the parameter is expected to be a cstring. We saw no compiler warnings with the old code as the Pointer type used in Datum

pgsql: Doc: Fix some spelling mistakes

2021-06-04 Thread David Rowley
Doc: Fix some spelling mistakes Author: Daniel Gustafsson Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/8f3c06c5d56fc0fa414bcf548860ac50a8fe5982 Modified Files -- doc/src/sg

pgsql: Fix postgres_fdw failure with whole-row Vars of type RECORD.

2021-06-04 Thread Tom Lane
Fix postgres_fdw failure with whole-row Vars of type RECORD. Commit 86dc90056 expects that FDWs can cope with whole-row Vars for their tables, even if the Vars are marked with vartype RECORDOID. Previously, whole-row Vars generated by the planner had vartype equal to the relevant table's rowtype O

pgsql: Fix subtransaction test for Python 3.10

2021-06-04 Thread Peter Eisentraut
Fix subtransaction test for Python 3.10 Starting with Python 3.10, the stacktrace looks differently: - PL/Python function "subtransaction_exit_subtransaction_in_with", line 3, in -s.__exit__(None, None, None) + PL/Python function "subtransaction_exit_subtransaction_in_with", line 2,

pgsql: Remove leftover conflict marker

2021-06-04 Thread Peter Eisentraut
Remove leftover conflict marker Branch -- REL_12_STABLE Details --- https://git.postgresql.org/pg/commitdiff/89f49cc3ad404c8bd6bdb7a4f30473948e581c34 Modified Files -- src/backend/access/transam/twophase.c | 1 - 1 file changed, 1 deletion(-)

pgsql: gitattributes: Add new entry to silence whitespace error

2021-06-04 Thread Peter Eisentraut
gitattributes: Add new entry to silence whitespace error Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/e6159885b78e9b91b2adc3161c5f827d081f2b13 Modified Files -- .gitattributes | 1 + 1 file changed, 1 insertion(+)