Re: Fix network subset support with custom operator classes

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Kirill Reshke <reshkekirill(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Fix network subset support with custom operator classes
Date: 2026-11-24 13:28:38
Message-ID: 271F9EBC-311D-4501-9178-CFA47FB76494@yandex-team.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Kirill,

The family OID check also removes index bounds from a copy of the
standard inet opclass in a separate family. Could we instead follow
like_support.c: select the standard inet operators, then check
op_in_opfamily() for the target family?

With the reverse opclass from your test, explicitly writing the standard
>= and <= bounds produces an Index Cond and returns the expected two
rows. That suggests we can fix the operator selection without losing
the generalization from be1cc9aaf5b.

I'd keep the test.

Thank you!

Best regards, Andrey Borodin.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Geier 2026-11-24 13:45:59 Re: Use correct collation in pg_trgm
Previous Message Keyerror Smart 2026-11-24 13:16:07 Re: [PATCH] Consider window functions when reordering GROUP BY items