remove unnecessary include in src/backend/commands/policy.c

From: jian he <jian(dot)universality(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: remove unnecessary include in src/backend/commands/policy.c
Date: 2025-09-14 06:37:28
Message-ID: CACJufxFvcqOd6g6uaQqKuKPRgcEfPwp_tLSaaxDiHFBb2snJDA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hi.

in src/backend/commands/policy.c, i found that
#include "access/htup.h"
#include "access/htup_details.h"
#include "catalog/catalog.h"
#include "nodes/pg_list.h"
#include "parser/parse_node.h"
#include "utils/array.h"

is not necessary "include", so I removed it.

we can also remove
#include "access/relation.h"
replace relation_open to table_open, since we already did relkind check in
RangeVarCallbackForPolicy.

Attachment Content-Type Size
v1-0001-remove-unnecessary-include-in-policy.c.patch text/x-patch 3.0 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2025-09-14 06:53:12 Re: Proposal: Conflict log history table for Logical Replication
Previous Message Bharath Rupireddy 2025-09-14 05:04:58 Re: Use WALReadFromBuffers in more places