Re: Remove unnecessary forward declaration for heapam_methods variable

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Japin Li <japinli@hotmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-08-06T07:35:36Z
Lists: pgsql-hackers
On Wed, Jul 31, 2024 at 10:36:11AM +0800, Japin Li wrote:
> I think the forward declaration for heapam_methods variable in heapam_handler.c
> is unnecessary, right?

True.  This can be removed because all the code paths using
heapam_methods are after its declaration, so duplicating it makes
little sense.  Thanks, applied.
--
Michael

Commits

  1. Remove unnecessary declaration of heapam_methods