From: | James Hunter <james(dot)hunter(dot)pg(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)lists(dot)postgresql(dot)org |
Subject: | [PATCH] Move clause_sides_match_join() into pathnode.h |
Date: | 2024-10-09 19:37:54 |
Message-ID: | CAJVSvF7Nm_9kgMLOch4c-5fbh3MYg=9BdnDx3Dv7Fcb64zr64Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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.
This change doesn't help very much, on its own (since the
almost-duplicate functions are both "inline"), but it allows us to use
the same utility function from other source files, without making a
third copy.
James
Attachment | Content-Type | Size |
---|---|---|
0001-Move-clause_sides_match_join-into-pathnode.h.patch | application/octet-stream | 7.0 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Nathan Bossart | 2024-10-09 19:55:16 | sunsetting md5 password support |
Previous Message | Marcos Pegoraro | 2024-10-09 19:16:53 | Mathematical Functions and Operators |