pgsql: Add additional information in the vacuum error context.

2020-08-25 Thread Amit Kapila
Add additional information in the vacuum error context. The additional information added will be an offset number for heap operations. This information will help us in finding the exact tuple due to which the error has occurred. Author: Mahendra Singh Thalor and Amit Kapila Reviewed-by: Sawada Ma

pgsql: Extend the BufFile interface.

2020-08-25 Thread Amit Kapila
Extend the BufFile interface. Allow BufFile to support temporary files that can be used by the single backend when the corresponding files need to be survived across the transaction and need to be opened and closed multiple times. Such files need to be created as a member of a SharedFileSet. Addi

pgsql: Move codes for pg_backend_memory_contexts from mmgr/mcxt.c to ad

2020-08-25 Thread Fujii Masao
Move codes for pg_backend_memory_contexts from mmgr/mcxt.c to adt/mcxtfuncs.c. Previously the codes for pg_backend_memory_contexts were in src/backend/utils/mmgr/mcxt.c. This commit moves them to src/backend/utils/adt/mcxtfuncs.c so that mcxt.c basically includes only the low-level interface for m

pgsql: Prevent non-superusers from reading pg_backend_memory_contexts,

2020-08-25 Thread Fujii Masao
Prevent non-superusers from reading pg_backend_memory_contexts, by default. pg_backend_memory_contexts view contains some internal information of memory contexts. Since exposing them to any users by default may cause security issue, this commit allows only superusers to read this view, by default,

pgsql: Add regression test for pg_backend_memory_contexts.

2020-08-25 Thread Fujii Masao
Add regression test for pg_backend_memory_contexts. Author: Atsushi Torikoshi Reviewed-by: Michael Paquier, Fujii Masao Discussion: https://postgr.es/m/[email protected] Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/adc8fc6167aa3f68b951ddd60ea32a6

pgsql: Fixup some misusages of bms_num_members()

2020-08-25 Thread David Rowley
Fixup some misusages of bms_num_members() It's a bit inefficient to test if a Bitmapset is empty by counting all the members and seeing if that number is zero. It's much better just to use bms_is_empty(). Likewise for checking if there are at least two members, just use bms_membership(), which do

pgsql: docs: client certificates are always sent to the server

2020-08-25 Thread Bruce Momjian
docs: client certificates are always sent to the server They are not "requested" by the server. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.5 Branch -- REL_11_STABLE Details --- https:

pgsql: docs: client certificates are always sent to the server

2020-08-25 Thread Bruce Momjian
docs: client certificates are always sent to the server They are not "requested" by the server. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.5 Branch -- REL_10_STABLE Details --- https:

pgsql: docs: client certificates are always sent to the server

2020-08-25 Thread Bruce Momjian
docs: client certificates are always sent to the server They are not "requested" by the server. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.5 Branch -- REL9_6_STABLE Details --- https:

pgsql: docs: client certificates are always sent to the server

2020-08-25 Thread Bruce Momjian
docs: client certificates are always sent to the server They are not "requested" by the server. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.5 Branch -- REL9_5_STABLE Details --- https:

pgsql: docs: client certificates are always sent to the server

2020-08-25 Thread Bruce Momjian
docs: client certificates are always sent to the server They are not "requested" by the server. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.5 Branch -- master Details --- https://git.p

pgsql: docs: client certificates are always sent to the server

2020-08-25 Thread Bruce Momjian
docs: client certificates are always sent to the server They are not "requested" by the server. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.5 Branch -- REL_12_STABLE Details --- https:

pgsql: docs: client certificates are always sent to the server

2020-08-25 Thread Bruce Momjian
docs: client certificates are always sent to the server They are not "requested" by the server. Reported-by: Kyotaro Horiguchi Discussion: https://postgr.es/m/[email protected] Backpatch-through: 9.5 Branch -- REL_13_STABLE Details --- https: