pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: bchen90@163.com
Subject: BUG #18112: pgstattuple of sequence failed
Date: Fri, 15 Sep 2023 10:47:00 +0000
Message-ID: <18112-724de41f491c9878@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18112
Logged by:          Bo Chen
Email address:      bchen90@163.com
PostgreSQL version: 15.2
Operating system:   euleros
Description:        

I found pgstattuple of sequence will be failed but not PG11.x, for the code
of pgstattuple it looks like still support of sequence, but the
"rel->rd_rel->relam now is 0, not HEAP_TABLE_AM_OID", so the error report

postgres=# drop Sequence test;
DROP SEQUENCE
postgres=# create Sequence test;
CREATE SEQUENCE
postgres=# select pgstattuple('test');
ERROR:  SQLSTATE 0A000: only heap AM is supported
LOCATION:  pgstat_heap, pgstattuple.c:322
postgres=#



view thread (2+ messages)  latest in thread

Message-ID: <18112-724de41f491c9878@postgresql.org>
Permalink:  ../18112-724de41f491c9878@postgresql.org/
Also on:    postgresql.org/message-id/18112-724de41f491c9878@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, bchen90@163.com
  Subject: Re: BUG #18112: pgstattuple of sequence failed
  In-Reply-To: <18112-724de41f491c9878@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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