Skip to content

State the scope of the generic timestamptz-set restrictions - #117

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/generic-tstzset-scope
Sep 2, 2026
Merged

State the scope of the generic timestamptz-set restrictions#117
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:fix/generic-tstzset-scope

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

temporal_at_tstzset and temporal_minus_tstzset are generic over Temporal *
and serve every temporal type, as temporal_at_values and temporal_minus_values
beside them do. Their siblings state a scope through the validity check they
call — temporal_at_tstzspan through a span check, temporal_delete_tstzset
through a set one — and these two call none, so nothing derives a scope for
them and they are declared here.

The declaration is what a shared wrapper requires. Temporal_at_tstzset carries
one claimant today, so nothing consults the entry and no function's signatures
move; a second claimant makes it shared, and require_scopes then refuses to
generate a catalog rather than let either claimant take the union.

temporal_at_tstzset and temporal_minus_tstzset are generic over Temporal *
and serve every temporal type, as temporal_at_values and temporal_minus_values
beside them do. Their siblings state a scope through the validity check they
call — temporal_at_tstzspan through a span check, temporal_delete_tstzset
through a set one — and these two call none, so nothing derives a scope for
them and they are declared here.

The declaration is what a shared wrapper requires. Temporal_at_tstzset carries
one claimant today, so nothing consults the entry and no function's signatures
move; a second claimant makes it shared, and require_scopes then refuses to
generate a catalog rather than let either claimant take the union.
@estebanzimanyi
estebanzimanyi merged commit 4fa4557 into MobilityDB:master Sep 2, 2026
3 checks passed
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