agora inbox for pgsql-committers@postgresql.org  
help / color / mirror / Atom feed
pgsql: Avoid useless calls in pg_get_multixact_stats()
2+ messages / 1 participants
[nested] [flat]

* pgsql: Avoid useless calls in pg_get_multixact_stats()
@ 2026-07-01 03:17 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2026-07-01 03:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid useless calls in pg_get_multixact_stats()

MultiXactOffsetStorageSize() and GetMultiXactInfo() are called to gather
the information reported by the function, but were wasteful for the case
where a role does not have the privileges of pg_read_all_stats, where we
return a set of NULLs.  These calls are moved to the code path where
their results are used.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQAonQh7be=wOR-CJFW=bgMBz5wW_bv4t0OFxbgn-794JCQ@mail.gmail.com
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b542d556670586ebadf380102f6ead920609e592

Modified Files
--------------
src/backend/utils/adt/multixactfuncs.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Avoid useless calls in pg_get_multixact_stats()
@ 2026-07-01 03:17 Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2026-07-01 03:17 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Avoid useless calls in pg_get_multixact_stats()

MultiXactOffsetStorageSize() and GetMultiXactInfo() are called to gather
the information reported by the function, but were wasteful for the case
where a role does not have the privileges of pg_read_all_stats, where we
return a set of NULLs.  These calls are moved to the code path where
their results are used.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQAonQh7be=wOR-CJFW=bgMBz5wW_bv4t0OFxbgn-794JCQ@mail.gmail.com
Backpatch-through: 19

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/9a2c07cbde9796049e4b37e3dde0b6f5253cb97b

Modified Files
--------------
src/backend/utils/adt/multixactfuncs.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2026-07-01 03:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 03:17 pgsql: Avoid useless calls in pg_get_multixact_stats() Michael Paquier <michael@paquier.xyz>
2026-07-01 03:17 pgsql: Avoid useless calls in pg_get_multixact_stats() Michael Paquier <michael@paquier.xyz>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox