Re: [PATCH] Move clause_sides_match_join() into pathnode.h

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: James Hunter <james(dot)hunter(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Move clause_sides_match_join() into pathnode.h
Date: 2024-10-10 00:26:33
Message-ID: CAApHDvocwWdcXZEGRVtL3iv_ZAbaB+Gh7MGk8AovhLCMxskHrA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 10 Oct 2024 at 08:38, James Hunter <james(dot)hunter(dot)pg(at)gmail(dot)com> wrote:
> We had two almost-identical copies of the utility function
> clause_sides_match_join() -- one in joinpath.c, and one in
> analyzejoins.c. Both copies were marked "inline," so we might as well
> just move the (inline) function definition into a common header file.
> I chose pathnode.h, because it is already #included by both of the .c
> files.

I'm in favour of the deduplication. pathnode.h seems like a strange
choice. restrictinfo.h seems more suited.

(I really wonder how much the inlining is giving us given that the
function itself calls other non-inlineable functions)

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2024-10-10 00:45:00 Re: Pgoutput not capturing the generated columns
Previous Message Michael Paquier 2024-10-10 00:01:47 Re: Allow default \watch interval in psql to be configured