pgsql: doc: Add note about postgres_fdw.application_name.

2021-12-15 Thread Fujii Masao
doc: Add note about postgres_fdw.application_name. postgres_fdw.application_name can be any string of any length and contain even non-ASCII characters. However when it's passed to and used as application_name in a foreign server, it's truncated to less than NAMEDATALEN characters and any characte

pgsql: Change ProcSendSignal() to take pgprocno.

2021-12-15 Thread Thomas Munro
Change ProcSendSignal() to take pgprocno. Instead of referring to target backends by pid, use pgprocno. This means that we don't have to scan the ProcArray and we can drop some special case code for dealing with the startup process. Discussion: https://postgr.es/m/CA%2BhUKGLYRyDaneEwz5Uya_OgFLM

pgsql: Always use ReleaseTupleDesc after lookup_rowtype_tupdesc et al.

2021-12-15 Thread Tom Lane
Always use ReleaseTupleDesc after lookup_rowtype_tupdesc et al. The API spec for lookup_rowtype_tupdesc previously said you could use either ReleaseTupleDesc or DecrTupleDescRefCount. However, the latter choice means the caller must be certain that the returned tupdesc is refcounted. I don't rec

pgsql: Remove pg_dump's --no-synchronized-snapshots switch.

2021-12-15 Thread Tom Lane
Remove pg_dump's --no-synchronized-snapshots switch. Server versions for which there was a plausible reason to use this switch are all out of support now. Leaving it around would accomplish little except to let careless DBAs shoot themselves in the foot. Discussion: https://postgr.es/m/556122.16

pgsql: Make DLSUFFIX easily discoverable by build scripts

2021-12-15 Thread Andrew Dunstan
Make DLSUFFIX easily discoverable by build scripts This will enable things like the buildfarm client to discover more reliably if certain libraries have been installed. Discussion: https://postgr.es/m/[email protected] This is a backpatch to 9.3 and 9.2 of com

pgsql: Make DLSUFFIX easily discoverable by build scripts

2021-12-15 Thread Andrew Dunstan
Make DLSUFFIX easily discoverable by build scripts This will enable things like the buildfarm client to discover more reliably if certain libraries have been installed. Discussion: https://postgr.es/m/[email protected] This is a backpatch to 9.3 and 9.2 of com

pgsql: pg_checksums: Fix data type

2021-12-15 Thread Peter Eisentraut
pg_checksums: Fix data type Segment numbers should be int, not BlockNumber (see also buffile.c). Likely no harm, but better for consistency. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/bf9a55c10729988a3c7ffbe14108e29d90283939 Modified Files -- src/b