Re: Some RELKIND macro refactoring

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-08-24T10:01:33Z
Lists: pgsql-hackers

Attachments

While analyzing this again, I think I found an existing mistake.  The 
handling of RELKIND_PARTITIONED_INDEX in 
RelationGetNumberOfBlocksInFork() seems to be misplaced.  See attached 
patch.

Commits

  1. Some RELKIND macro refactoring

  2. pg_dump: Add missing relkind case

  3. Fix handling of partitioned index in RelationGetNumberOfBlocksInFork()