pgstattuple: Have pgstattuple_approx accept TOAST tables
Peter Eisentraut <peter@eisentraut.org>
pgstattuple: Have pgstattuple_approx accept TOAST tables TOAST tables have a visibility map and a free space map, so they can be supported by pgstattuple_approx just fine. Add test cases to show how various pgstattuple functions accept TOAST tables. Also add similar tests to pg_visibility, which already accepted TOAST tables correctly but had no test coverage for them. Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at> Discussion: https://www.postgresql.org/message-id/flat/27c4496a-02b9-dc87-8f6f-bddbef54e0fe@2ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pgstattuple/expected/pgstattuple.out | modified | +22 −3 |
| contrib/pgstattuple/pgstatapprox.c | modified | +5 −5 |
| contrib/pgstattuple/sql/pgstattuple.sql | modified | +5 −0 |
| contrib/pg_visibility/expected/pg_visibility.out | modified | +15 −2 |
| contrib/pg_visibility/sql/pg_visibility.sql | modified | +5 −2 |
Discussion
- pgstattuple: Have pgstattuple_approx accept TOAST tables 3 messages · 2020-04-17 → 2020-06-29