pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Add copy/equal support for XID lists
3+ messages / 2 participants
[nested] [flat]
Commits from this thread:
2022-07-13 7057bf2354 Fix XID list support some more
* pgsql: Add copy/equal support for XID lists
@ 2022-07-12 14:12 Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 1 reply; 3+ messages in thread
From: Alvaro Herrera @ 2022-07-12 14:12 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Add copy/equal support for XID lists
Commit f10a025cfe97 added support for List to store Xids, but didn't
handle the new type in all cases. Add some obviously necessary pieces.
As far as I am aware, this is all dead code as far as core code is
concerned, but it seems unacceptable not to have it in case third-party
code wants to rely on this type of list. (Some parts of the List API
remain unimplemented, but that can be fixed as and when needed -- see
lack of list_intersection_oid, list_deduplicate_int as precedents.)
Discussion: https://postgr.es/m/20220708164534.nbejhgt4ajz35p65@alvherre.pgsql
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5ca0fe5c8ad7987beee95669124c7e245f2816d8
Modified Files
--------------
src/backend/nodes/copyfuncs.c | 5 +++--
src/backend/nodes/equalfuncs.c | 8 ++++++++
src/test/modules/test_oat_hooks/test_oat_hooks.c | 3 +++
3 files changed, 14 insertions(+), 2 deletions(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Add copy/equal support for XID lists
@ 2022-07-12 14:36 Tom Lane <tgl@sss.pgh.pa.us>
parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2022-07-12 14:36 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-committers@lists.postgresql.org
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Add copy/equal support for XID lists
What about outfuncs/readfuncs? I see that you fixed _outList,
but not its caller outNode:
else if (IsA(obj, List) || IsA(obj, IntList) || IsA(obj, OidList))
_outList(str, obj);
and the LEFT_PAREN case in nodeRead() doesn't know what to do either.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Add copy/equal support for XID lists
@ 2022-07-12 18:35 Alvaro Herrera <alvherre@alvh.no-ip.org>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Alvaro Herrera @ 2022-07-12 18:35 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org
On 2022-Jul-12, Tom Lane wrote:
> What about outfuncs/readfuncs? I see that you fixed _outList,
> but not its caller outNode:
>
> else if (IsA(obj, List) || IsA(obj, IntList) || IsA(obj, OidList))
> _outList(str, obj);
>
> and the LEFT_PAREN case in nodeRead() doesn't know what to do either.
Hmm, true -- naively grepping for OidList wasn't enough (moreso when I
failed to notice one occurrence). This patch closes the holes you
mentioned. I haven't found any others yet.
--
Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
"La vida es para el que se aventura"
Attachments:
0001-Fix-XID-list-support-some-more.patch (text/x-diff, 0B) download
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-07-12 18:35 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 14:12 pgsql: Add copy/equal support for XID lists Alvaro Herrera <alvherre@alvh.no-ip.org>
2022-07-12 14:36 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-07-12 18:35 ` Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox