Re: remove unnecessary include in src/backend/commands/policy.c - Mailing list pgsql-hackers

From Shinya Kato
Subject Re: remove unnecessary include in src/backend/commands/policy.c
Date
Msg-id CAOzEurR27z9-4-5J0Tv27+c+Y37uY8ZS2g-ttcs0fYaa2CVAUw@mail.gmail.com
Whole thread Raw
In response to Re: remove unnecessary include in src/backend/commands/policy.c  (jian he <jian.universality@gmail.com>)
List pgsql-hackers
On Tue, Oct 21, 2025 at 1:01 PM jian he <jian.universality@gmail.com> wrote:
> > Thank you, I agree with Álvaro. So, I think it is better to leave them
> > as they are, except for access/relation.h. And, replacing
> > relation_open to table_open looks good to me.
> >
>
> ok.
>
> The attached patch only replaces relation_open to table_open.
> RangeVarCallbackForPolicy already checks that a policy can only be created on a
> table or a partitioned table.
>
> so the replacement should be ok.

Thank you for updating the patch.
But I said "except for access/relation.h". I think access/relation.h
is not necessary if you replace relation_open to table_open.


--
Best regards,
Shinya Kato
NTT OSS Center



pgsql-hackers by date:

Previous
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Question for coverage report
Next
From: jian he
Date:
Subject: Re: [PATCH] Add pg_get_policy_ddl() function to reconstruct CREATE POLICY statement