Thread: Un-include access/heapam.h

Un-include access/heapam.h

From
Amit Langote
Date:
I noticed that un-including access/heapam.h from the following files
leaves things just fine.

src/backend/commands/aggregatecmds.c
src/backend/commands/collationcmds.c
src/backend/commands/conversioncmds.c
src/backend/commands/lockcmds.c

It seems any calls into heapam.c that there used to be have since moved to
the corresponding backend/catalog/* files or elsewhere.

Attached a patch.

Thanks,
Amit

Attachment

Re: Un-include access/heapam.h

From
Heikki Linnakangas
Date:
On 10/04/2016 07:39 AM, Amit Langote wrote:
> I noticed that un-including access/heapam.h from the following files
> leaves things just fine.
>
> src/backend/commands/aggregatecmds.c
> src/backend/commands/collationcmds.c
> src/backend/commands/conversioncmds.c
> src/backend/commands/lockcmds.c
>
> It seems any calls into heapam.c that there used to be have since moved to
> the corresponding backend/catalog/* files or elsewhere.
>
> Attached a patch.

Thanks, applied.

- Heikki