Re: Add missing operator <->(box, point) - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Re: Add missing operator <->(box, point)
Date
Msg-id CAPpHfdu7nnU_CYWhf1afDQqKnBAzaA60m8eBLTYsjH6BFb1kWw@mail.gmail.com
Whole thread Raw
In response to Re: Add missing operator <->(box, point)  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
List pgsql-hackers
On Tue, Jul 9, 2019 at 12:03 AM Alexander Korotkov
<a.korotkov@postgrespro.ru> wrote:
> On Mon, Jul 8, 2019 at 11:39 PM Nikita Glukhov <n.gluhov@postgrespro.ru> wrote:
> > On 08.07.2019 18:22, Alexander Korotkov wrote:
> > For me it doesn't look worth having two distinct functions
> > gist_box_distance_helper() and gist_bbox_distance().  What about
> > having just one and leave responsibility for recheck flag to the
> > caller?
> >
> > gist_bbox_distance() was removed.
>
> OK.
>
> > But maybe it would be better to replace two identical functions
> > gist_circle_distance() and gist_poly_distance() with the single
> > gist_bbox_distance()?
>
> Sounds reasonable to me.

However, gist_poly_distance() and gist_circle_distance() have
different signatures.  Having same internal function to be
corresponding to more than one catalog function cause troubles in
sanity checks.  So, let's leave it as it is.

Revised patchset is attached.  It contains commit messages as well as
minor editorialization.

I'm going to push this if no objections.

------
Alexander Korotkov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company

Attachment

pgsql-hackers by date:

Previous
From: Dave Cramer
Date:
Subject: Re: let's make the list of reportable GUCs configurable (was Re: Add%r substitution for psql prompts to show recovery status)
Next
From: Fabien COELHO
Date:
Subject: Re: pgbench - add option to show actual builtin script code