From: | Kashif Zeeshan <kashi(dot)zeeshan(at)gmail(dot)com> |
---|---|
To: | Ayush Vatsa <ayushvatsa1810(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Issue with pgstattuple on Sequences in PostgreSQL |
Date: | 2024-06-24 11:38:33 |
Message-ID: | CAAPsdhfNRaVt6EkNDmprk0eLHHDbq8M1bhSO1nC_T3o=Ef-xtg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hi
I dont think Sequences are support, please refer to the following
documentation.
https://www.postgresql.org/docs/current/pgstattuple.html
Regards
Kashif Zeeshan
On Mon, Jun 24, 2024 at 4:09 PM Ayush Vatsa <ayushvatsa1810(at)gmail(dot)com>
wrote:
> Hi PostgreSQL Community,
>
> I was recently exploring the pgstattuple code directory and found this
> piece of code:
> https://github.com/postgres/postgres/blob/master/contrib/pgstattuple/pgstattuple.c#L255-L259
> .
>
> It indicates that pgstattuple supports relations, toast tables,
> materialized views, and sequences.
> However, when I executed a query with a sequence, I encountered the
> following error:
>
> postgres=> CREATE SEQUENCE serial START 101;
> CREATE SEQUENCE
> postgres=> SELECT * FROM pgstattuple('serial');
> ERROR: only heap AM is supported
> postgres=>
>
> It got stuck in this if condition -
> https://github.com/postgres/postgres/blob/master/contrib/pgstattuple/pgstattuple.c#L326-L329
> How can one use pgstattuple on sequences?
>
> Regards,
> Ayush Vatsa
>
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Johnson | 2024-06-24 12:54:43 | Re: Execute permission to function |
Previous Message | Ayush Vatsa | 2024-06-24 11:09:28 | Issue with pgstattuple on Sequences in PostgreSQL |