Re: Avoid mix char with bool type in comparisons - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Avoid mix char with bool type in comparisons
Date
Msg-id 3024623.1665100373@sss.pgh.pa.us
Whole thread Raw
In response to Avoid mix char with bool type in comparisons  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Avoid mix char with bool type in comparisons
List pgsql-hackers
Ranier Vilela <ranier.vf@gmail.com> writes:
> So, any use of this GinTernaryValue are:

> 1. if (key->entryRes[j]) be FALSE if GIN_FALSE
> 2. if (key->entryRes[j]) be TRUE if GIN_TRUE
> 3. if (key->entryRes[j]) be TRUE if GIN_MAYBE

Yeah, that's how it's designed.  Unless you can point to a bug,
I do not think we ought to change this code.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Issue with pg_stat_subscription_stats
Next
From: Ajin Cherian
Date:
Subject: Re: Support logical replication of DDLs