small erreport bug over partitioned table pgrowlocks module
jian he <jian.universality@gmail.com>
From: jian he <jian.universality@gmail.com>
To: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2023-10-31T00:00:00Z
Lists: pgsql-hackers
hi.
erreport bug over partitioned table in pgrowlocks.
BEGIN;
CREATE TABLE fk_parted_pk (a int PRIMARY KEY) PARTITION BY LIST (a);
SELECT * FROM pgrowlocks('fk_parted_pk');
ERROR: only heap AM is supported
error should be the following part:
if (rel->rd_rel->relkind == RELKIND_PARTITIONED_TABLE)
ereport(ERROR,
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
errmsg("\"%s\" is a partitioned table",
RelationGetRelationName(rel)),
errdetail("Partitioned tables do not contain rows.")));
Commits
-
Adjust the order of the prechecks in pgrowlocks()
- efcb601d2057 12.17 landed
- b3c8d1d0ea5e 13.13 landed
- c5988e69fe90 14.10 landed
- 1360683530a6 15.5 landed
- a98f01c933ec 16.1 landed
- 73635b6d63b5 17.0 landed