pgsql: Add more columns to pg_stat_ssl

2019-01-31 Thread Peter Eisentraut
Add more columns to pg_stat_ssl Add columns client_serial and issuer_dn to pg_stat_ssl. These allow uniquely identifying the client certificate. Rename the existing column clientdn to client_dn, to make the naming more consistent and easier to read. Discussion: https://www.postgresql.org/messa

pgsql: Fix use of dangling pointer in heap_delete() when logging replic

2019-01-31 Thread Michael Paquier
Fix use of dangling pointer in heap_delete() when logging replica identity When logging the replica identity of a deleted tuple, XLOG_HEAP_DELETE records include references of the old tuple. Its data is stored in an intermediate variable used to register this information for the WAL record, but t

pgsql: Fix use of dangling pointer in heap_delete() when logging replic

2019-01-31 Thread Michael Paquier
Fix use of dangling pointer in heap_delete() when logging replica identity When logging the replica identity of a deleted tuple, XLOG_HEAP_DELETE records include references of the old tuple. Its data is stored in an intermediate variable used to register this information for the WAL record, but t

pgsql: Fix use of dangling pointer in heap_delete() when logging replic

2019-01-31 Thread Michael Paquier
Fix use of dangling pointer in heap_delete() when logging replica identity When logging the replica identity of a deleted tuple, XLOG_HEAP_DELETE records include references of the old tuple. Its data is stored in an intermediate variable used to register this information for the WAL record, but t

pgsql: Fix use of dangling pointer in heap_delete() when logging replic

2019-01-31 Thread Michael Paquier
Fix use of dangling pointer in heap_delete() when logging replica identity When logging the replica identity of a deleted tuple, XLOG_HEAP_DELETE records include references of the old tuple. Its data is stored in an intermediate variable used to register this information for the WAL record, but t

pgsql: Fix use of dangling pointer in heap_delete() when logging replic

2019-01-31 Thread Michael Paquier
Fix use of dangling pointer in heap_delete() when logging replica identity When logging the replica identity of a deleted tuple, XLOG_HEAP_DELETE records include references of the old tuple. Its data is stored in an intermediate variable used to register this information for the WAL record, but t

pgsql: Fix use of dangling pointer in heap_delete() when logging replic

2019-01-31 Thread Michael Paquier
Fix use of dangling pointer in heap_delete() when logging replica identity When logging the replica identity of a deleted tuple, XLOG_HEAP_DELETE records include references of the old tuple. Its data is stored in an intermediate variable used to register this information for the WAL record, but t

pgsql: Adjust comment about timeout when waiting for WAL at recovery

2019-01-31 Thread Michael Paquier
Adjust comment about timeout when waiting for WAL at recovery A timeout of 5s is used when waiting for WAL to become available at recovery so as the startup process is able to react promptly if a trigger file shows up. However this missed the fact that the startup process also relies on the timeo