Change some Datum to void * for opaque pass-through pointer

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Change some Datum to void * for opaque pass-through pointer
Date: 2025-12-23 13:15:09
Message-ID: 1c5d23cb-288b-4154-b1cd-191fe2301707@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I developed this patch as part of the Datum-as-struct semi-proposal [0].
I think it can be useful independent of that.

Here, Datum was used to pass around an opaque pointer between a group of
functions. But one might as well use void * for that; the use of Datum
doesn't achieve anything here and is just distracting.

[0]:
https://www.postgresql.org/message-id/flat/8246d7ff-f4b7-4363-913e-827dadfeb145%40eisentraut.org

Attachment Content-Type Size
0001-Change-some-Datum-to-void-for-opaque-pass-through-po.patch text/plain 4.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuya Kawata 2025-12-23 13:20:08 Re: [PATCH] Add memory usage reporting to VACUUM VERBOSE
Previous Message Dilip Kumar 2025-12-23 12:22:14 Re: Proposal: Conflict log history table for Logical Replication