Remove unnecessary "lmgr.h" in stat_utils.c

From: Ilia Evdokimov <ilya(dot)evdokimov(at)tantorlabs(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Remove unnecessary "lmgr.h" in stat_utils.c
Date: 2025-05-05 13:33:20
Message-ID: 702179c2-23c3-4840-b59e-e33630cfa8fd@tantorlabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi hackers,

While reviewing the import/export statistics, I noticed that relation
locking are handled via relation_open() and relation_close() in
stats_lock_check_privileges(), and no calls to other lock-manager
routines are actually used there. As a result, the inclusion of the
lock-manager header

#include "storage/lmgr.h"

is not needed. I have attached a small patch which simply removes that
include.

--
Best regards,
Ilia Evdokimov,
Tantor Labs LLC.

Attachment Content-Type Size
v1-0001-Remove-unused-lmgr.h-from-statistics-utilities.patch text/x-patch 735 bytes

Browse pgsql-hackers by date

  From Date Subject
Next Message Xuneng Zhou 2025-05-05 13:37:35 Re: BgBufferSync(): clarification about reusable_buffers variable
Previous Message Xuneng Zhou 2025-05-05 13:30:04 Re: BgBufferSync(): clarification about reusable_buffers variable