Fix pgstattuple to acquire a read lock on the target table. This
Tom Lane <tgl@sss.pgh.pa.us>
Fix pgstattuple to acquire a read lock on the target table. This prevents embarassments such as having the table dropped or truncated partway through the scan. Also, fix free space calculation to include pages that currently contain no tuples.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgstattuple/pgstattuple.c | modified | +36 −18 |
| contrib/pgstattuple/README.pgstattuple | modified | +2 −2 |