pgsql: Simplify code related to compilation of SSL and OpenSSL

2021-02-09 Thread Michael Paquier
Simplify code related to compilation of SSL and OpenSSL This commit makes more generic some comments and code related to the compilation with OpenSSL and SSL in general to ease the addition of more SSL implementations in the future. In libpq, some OpenSSL-only code is moved under USE_OPENSSL and

pgsql: Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY

2021-02-09 Thread Michael Paquier
Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY For an index, attstattarget can be updated using ALTER INDEX SET STATISTICS. This data was lost on the new index after REINDEX CONCURRENTLY. The update of this field is done when the old and new indexes are swapped to make the fix b

pgsql: Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY

2021-02-09 Thread Michael Paquier
Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY For an index, attstattarget can be updated using ALTER INDEX SET STATISTICS. This data was lost on the new index after REINDEX CONCURRENTLY. The update of this field is done when the old and new indexes are swapped to make the fix b

pgsql: Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY

2021-02-09 Thread Michael Paquier
Preserve pg_attribute.attstattarget across REINDEX CONCURRENTLY For an index, attstattarget can be updated using ALTER INDEX SET STATISTICS. This data was lost on the new index after REINDEX CONCURRENTLY. The update of this field is done when the old and new indexes are swapped to make the fix b

pgsql: Make pg_replication_origin_drop safe against concurrent drops.

2021-02-09 Thread Amit Kapila
Make pg_replication_origin_drop safe against concurrent drops. Currently, we get the origin id from the name and then drop the origin by taking ExclusiveLock on ReplicationOriginRelationId. So, two concurrent sessions can get the id from the name at the same time and then when they try to drop the

pgsql: Tag refs/tags/REL_12_6 was created

2021-02-09 Thread noreply
Tag refs/tags/REL_12_6 was created.

pgsql: Tag refs/tags/REL9_5_25 was created

2021-02-09 Thread noreply
Tag refs/tags/REL9_5_25 was created.

pgsql: Tag refs/tags/REL_13_2 was created

2021-02-09 Thread noreply
Tag refs/tags/REL_13_2 was created.

pgsql: Tag refs/tags/REL_11_11 was created

2021-02-09 Thread noreply
Tag refs/tags/REL_11_11 was created.

pgsql: Tag refs/tags/REL9_6_21 was created

2021-02-09 Thread noreply
Tag refs/tags/REL9_6_21 was created.

pgsql: Tag refs/tags/REL_10_16 was created

2021-02-09 Thread noreply
Tag refs/tags/REL_10_16 was created.

pgsql: Fix obsolete FSM remarks in nbtree README.

2021-02-09 Thread Peter Geoghegan
Fix obsolete FSM remarks in nbtree README. The free space map has used a dedicated relation fork rather than shared memory segments for over a decade. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/31c7fb41e26bf03dae231c7165a1a16388b2e366 Modified Files --

pgsql: Revert "Display the time when the process started waiting for th

2021-02-09 Thread Fujii Masao
Revert "Display the time when the process started waiting for the lock, in pg_locks." This reverts commit 3b733fcd04195399db56f73f0616b4f5c6828e18. Per buildfarm members prion and rorqual. Branch -- master Details --- https://git.postgresql.org/pg/commitdiff/890d2182a2c425aaa80f9bf9f71

pgsql: Display the time when the process started waiting for the lock,

2021-02-09 Thread Fujii Masao
Display the time when the process started waiting for the lock, in pg_locks. This commit adds new column "waitstart" into pg_locks view. This column reports the time when the server process started waiting for the lock if the lock is not held. This information is useful, for example, when examinin