Skip to content

Read the MEOS Doxygen of pgtypes alike in every @param reader - #210

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/pgtypes-doxygen-read
Oct 26, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/pgtypes-doxygen-read

Conversation

@estebanzimanyi

@estebanzimanyi estebanzimanyi commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

The readers of the MEOS @PARAM Doxygen scan one list of sources, doxygen_sources: the src and include trees of meos/ and the sibling pgtypes/ tree, the vendored PostgreSQL base-type layer that defines public MEOS functions outside meos/ and documents them on its .c definitions. They also pair a Doxygen block with its function by one pattern, _FUNC, which steps over the preprocessor lines that separate the two where pgtypes/ guards the MEOS twin of a function with #if MEOS. extract_nullable and extract_param_docs read them as extract_param_names and extract_outparams do, so a parameter documented in pgtypes/ states its nullability to the catalog as its direction already does, on the function its block documents.

Witness: the catalog derived from MobilityDB master f3d480c80a gains shape.nullable ["vars"] on jsonb_path_exists, jsonb_path_match, jsonb_path_query_array, jsonb_path_query_first and jsonb_path_query_all, whose @PARAM lines in pgtypes/utils/jsonpath_exec.c state that vars may be NULL above an #if MEOS guard; no other function of the 6721 changes, and shape.outParams is unchanged. The 509 tests pass.

The readers of the MEOS @PARAM Doxygen scan one list of sources, doxygen_sources: the src and include trees of meos/ and the sibling pgtypes/ tree, the vendored PostgreSQL base-type layer that defines public MEOS functions outside meos/ and documents them on its .c definitions. They also pair a Doxygen block with its function by one pattern, _FUNC, which steps over the preprocessor lines that separate the two where pgtypes/ guards the MEOS twin of a function with #if MEOS. extract_nullable and extract_param_docs read them as extract_param_names and extract_outparams do, so a parameter documented in pgtypes/ states its nullability to the catalog as its direction already does, on the function its block documents.

Witness: the catalog derived from MobilityDB master f3d480c80a gains shape.nullable ["vars"] on jsonb_path_exists, jsonb_path_match, jsonb_path_query_array, jsonb_path_query_first and jsonb_path_query_all, whose @PARAM lines in pgtypes/utils/jsonpath_exec.c state that vars may be NULL above an #if MEOS guard; no other function of the 6721 changes, and shape.outParams is unchanged. The 509 tests pass.
@estebanzimanyi
estebanzimanyi force-pushed the fix/pgtypes-doxygen-read branch from 1e51831 to bddc6c1 Compare October 26, 2026 14:17
@estebanzimanyi
estebanzimanyi merged commit ce04eec into MobilityDB:master Oct 26, 2026
3 of 5 checks passed
@estebanzimanyi
estebanzimanyi deleted the fix/pgtypes-doxygen-read branch October 26, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant