From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | jian he <jian(dot)universality(at)gmail(dot)com> |
Cc: | Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_restore --no-policies should not restore policies' comment |
Date: | 2025-09-09 07:56:15 |
Message-ID: | CAHGQGwF_YuAzbN+ZZbMRHF0aadm-5Gu3QuEov_x0=5nAnUf2NA@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Sep 9, 2025 at 2:50 PM jian he <jian(dot)universality(at)gmail(dot)com> wrote:
>
> On Tue, Sep 9, 2025 at 12:00 PM Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> >
> > On Thu, Sep 4, 2025 at 6:00 PM jian he <jian(dot)universality(at)gmail(dot)com> wrote:
> > > in _tocEntryRestorePass
> > > if we do
> > >
> > > if ((strcmp(te->desc, "COMMENT") == 0 ||
> > > strcmp(te->desc, "SECURITY LABEL") == 0) &&
> > > strncmp(te->tag, "EVENT TRIGGER ", 14) == 0)
> > > return RESTORE_PASS_POST_ACL;
> > >
> > > then RestorePass related comments also need to be adjusted for security label?
> >
> > Could you clarify which comments should be updated for SECURITY LABEL?
> > I don't see any references to COMMENT in RestorePass, so it doesn't look
> > like any updates are needed there for SECURITY LABEL either. But maybe
> > I'm missing something...
> >
>
> typedef enum
> {
> RESTORE_PASS_MAIN = 0, /* Main pass (most TOC item types) */
> RESTORE_PASS_ACL, /* ACL item types */
> RESTORE_PASS_POST_ACL, /* Event trigger and matview refresh items */
>
> #define RESTORE_PASS_LAST RESTORE_PASS_POST_ACL
> } RestorePass;
>
> I thought we needed to change the comments:
> " /* Event trigger and matview refresh items */".
>
> looking at the code again, we don't need to do that.
> Overall, all the patches look good to me.
> (I didn't test back branch related tests though)
Thanks for the review! Unless there are any objections,
I’ll run the tests again and then push the patches.
Regards,
--
Fujii Masao
From | Date | Subject | |
---|---|---|---|
Next Message | Fujii Masao | 2025-09-09 08:07:18 | Re: issue with synchronized_standby_slots |
Previous Message | Pierrick | 2025-09-09 07:53:44 | Re: Only one version can be installed when using extension_control_path |