pgstattuple only allowed by superuser

236 visualizzazioni
Passa al primo messaggio da leggere

Zsolt Ero

da leggere,
20 mar 2019, 09:41:1520/03/19
a Google Cloud SQL discuss
Hello,

I see that pgstattuple is a supported module, based in the official docs / changelog.

CREATE EXTENSION pgstattuple; runs with OK.

However, when I try to use module with 

SELECT * FROM pgstattuple('tablename');

It terminates with ERROR:  must be superuser to use pgstattuple functions.

I believe this is must be a bug, or otherwise why is this module advertised as supported?



George (Cloud Platform Support)

da leggere,
5 apr 2019, 11:16:4605/04/19
a Google Cloud SQL discuss
Hello Zsolt, 

This behavior should not appear as unexpected: any features requiring superuser access are not supported. An exception to this rule is made for the CREATE EXTENSION statement, but only for supported extensions, as stated on the "Cloud SQL Features" page. pgstattuple does not fall under this category, as it does not appear on the list of supported extensions. You can check the status of that list on the "PostgreSQL Extensions" page

Ben Perlman

da leggere,
15 mag 2020, 14:34:1415/05/20
a Google Cloud SQL discuss
It says that pgstattuple is supported here: https://cloud.google.com/sql/docs/postgres/release-notes#June_01_2017
Any ideas why its not actually on the supported extension page? 

mulem

da leggere,
21 mag 2020, 23:53:0921/05/20
a Google Cloud SQL discuss
Hello Ben,

Pgstattuple was deprecated in November, 2018 due to compatibility and functionality issues which is why it no longer appears on the supported extensions page but is still listed in the release notes of June 2017 when it was first introduced.

Rodolphe QUIEDEVILLE

da leggere,
6 mag 2021, 09:42:1406/05/21
a Google Cloud SQL discuss
Hi,
Thanks for this answer that help understanding the same issue I encountered.

If pgstattuple is not usable why letting it available ? 
What about removing from the available extensions list all that we can't use ?

postgres=> select * from pg_available_extensions where name ='pgstattuple';
    name     | default_version | installed_version |           comment           
-------------+-----------------+-------------------+-----------------------------
 pgstattuple | 1.5             | 1.5               | show tuple-level statistics
(1 row)

Best

Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi