Re: equalPolicy() doesn't compare the permissive flag - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: equalPolicy() doesn't compare the permissive flag
Date
Msg-id alRIG8yBBUCUAtUq@paquier.xyz
Whole thread
In response to Re: equalPolicy() doesn't compare the permissive flag  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: equalPolicy() doesn't compare the permissive flag
List pgsql-hackers
On Fri, Jul 10, 2026 at 08:58:22AM +0200, Laurenz Albe wrote:
> I don't know if the omission to check for identical PERMISSIVE or
> RESTRICTIVE settings can lead to real problems, but I feel that it
> violates the promise of the function.  So I am +1 on this change.

That does not make sense here, two policies with a different
polpermissive are not the same, or am I missing something?

That just looks like a hole coming from 093129c9d9fc where the field
has been added.  Here is the thread related to this commit, without
the relcache part being mentioned:
https://www.postgresql.org/message-id/20160901063404.GY4028%40tamriel.snowman.net
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH v1 0/7] Wait event timing and tracing instrumentation
Next
From: jian he
Date:
Subject: Re: [PATCH] no table rewrite when set column type to constrained domain