Re: vacuumdb --missing-stats-only and permission issue

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Corey Huinker <corey(dot)huinker(at)gmail(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: vacuumdb --missing-stats-only and permission issue
Date: 2025-08-23 14:36:07
Message-ID: aKnR16Uvf34MrhLX@nathan
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Aug 23, 2025 at 05:32:30AM -0400, Corey Huinker wrote:
> On Fri, Aug 22, 2025 at 11:20 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
>> On Sat, Aug 23, 2025 at 12:00 PM Nathan Bossart <nathandbossart(at)gmail(dot)com> wrote:
>>> Hm. Maybe we should just document that the option requires SELECT
>>> privileges on pg_statistic and pg_statistic_ext_data (which are restricted
>>> to superusers by default). I suspect we have relatively limited
>>> opportunities for tuning the query, and I'd like to avoid invasive changes
>>> to v18 at this point.
>>
>> Yeah, adding a note about the permissions required for --missing-stats-only,
>> leaving the query unchanged in v18, and revisiting the issue in v19 seems
>> reasonable given the limited time before the v18 release.
>
> Rather than resorting to the redundant where-clause trick that we did in
> pg_dump.

Here's a patch for the documentation update.

--
nathan

Attachment Content-Type Size
v4-0001-doc-Note-privileges-required-for-vacuumdb-missing.patch text/plain 1.2 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-08-23 14:38:09 Re: List TAP test files in makefiles
Previous Message Álvaro Herrera 2025-08-23 14:22:11 Re: Adding REPACK [concurrently]