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

From: Shinya Kato <shinya11(dot)kato(at)gmail(dot)com>
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: remove unnecessary include in src/backend/commands/policy.c
Date: 2025-10-22 06:30:28
Message-ID: CAOzEurR27z9-4-5J0Tv27+c+Y37uY8ZS2g-ttcs0fYaa2CVAUw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 21, 2025 at 1:01 PM jian he <jian(dot)universality(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message jian he 2025-10-22 07:20:21 Re: [PATCH] Add pg_get_policy_ddl() function to reconstruct CREATE POLICY statement
Previous Message Hayato Kuroda (Fujitsu) 2025-10-22 06:11:32 RE: Question for coverage report