Skip to content

Deprecate variadic! support#1713

Merged
workingjubilee merged 3 commits into
pgcentralfoundation:developfrom
workingjubilee:remove-variadic-macro
May 22, 2024
Merged

Deprecate variadic! support#1713
workingjubilee merged 3 commits into
pgcentralfoundation:developfrom
workingjubilee:remove-variadic-macro

Conversation

@workingjubilee

@workingjubilee workingjubilee commented May 22, 2024

Copy link
Copy Markdown
Member

This removes variadic! support. The macro itself remains, but it does nothing now, and has a deprecation note. There are no uses of it in this codebase, the ZomboDB codebase, or other pgrx-using codebases I have seen. VariadicArray completely surpasses it in utility. I want to remove, ideally, all these ad-hoc type macros, but they may need to be replaced in functionality. This one, however, is already dead.

Comment thread pgrx/src/fcinfo.rs
};
}

#[deprecated(since = "0.12.0", note = "try VariadicArray")]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just delete the macro. There's enough breaking changes in develop that one more doesn't matter.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the real parts of the macro, and thus the things that complicate its support internally, are gone. There are other users that don't have their code published, and for them, telling them what else to do may make migration slightly easier.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obviously I've broken probably a fair number of unpublished extensions with this version but it seems low-effort.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it become a compile error instead of a deprecated warning? Cuz using it now would mean it doesn't dooooooooo what they want, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh sure.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually it already is lol

@workingjubilee workingjubilee merged commit 8a58957 into pgcentralfoundation:develop May 22, 2024
@workingjubilee workingjubilee deleted the remove-variadic-macro branch May 22, 2024 22:05
usamoi pushed a commit to tensorchord/pgrx that referenced this pull request Mar 6, 2025
This removes `variadic!` support. The macro itself remains, but it does
nothing now, and has a deprecation note. There are no uses of it in this
codebase, the ZomboDB codebase, or other pgrx-using codebases I have
seen. `VariadicArray` completely surpasses it in utility. I want to
remove, ideally, all these ad-hoc type macros, but they may need to be
replaced in functionality. This one, however, is already dead.
workingjubilee added a commit that referenced this pull request Oct 28, 2025
Closes out the promise of #1713
daamien pushed a commit to daamien/pgrx that referenced this pull request Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants