Re: Add Postgres module info - Mailing list pgsql-hackers

From Yurii Rashkovskii
Subject Re: Add Postgres module info
Date
Msg-id CAG=VW14rW63X=rqUS1yxLqZJeb_R+oRGdL5ZuF1mRDOMaSmzvg@mail.gmail.com
Whole thread Raw
In response to Re: Add Postgres module info  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Add Postgres module info
List pgsql-hackers

On Wed, Mar 26, 2025 at 8:17 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Yurii Rashkovskii <yrashk@omnigres.com> writes:
>> Can you propose a specific change to clean it up?  I wanted to write
>> just "PG_MODULE_MAGIC_DATA()", but I'm not sure that's valid C either.

> I was thinking about passing `.name = NULL, .version = NULL` instead of
> `0`—do you have any reservations about this?

If we're going that way, I'd minimize it to just ".name = NULL".

Would something like this work? 
Attachment

pgsql-hackers by date:

Previous
From: Amul Sul
Date:
Subject: Re: NOT ENFORCED constraint feature
Next
From: Tom Lane
Date:
Subject: Re: Remove vardata parameters from eqjoinsel_inner