ossc-db / pg_hint_plan

Extension adding support for optimizer hints in PostgreSQL
Other
674 stars 101 forks source link

add META.json for PGXN distribution #158

Closed ardentperf closed 9 months ago

ardentperf commented 9 months ago

It would be great to distribute pg_hint_plan on PGXN. In order to do that, we'll need a META.json file with the metadata needed by PGXN to catalog and manage the extension. This PR has a proposal.

few notes about this draft (open to discussion):

once things are agreed on, I can create PRs for branches from v11 to v15. (or if github supports multiple branches in a single PR then i can do that, i just haven't tried this yet to see if it works.)

ardentperf commented 9 months ago

Another thought, it might be nice to have a checklist somewhere of all the places that need to be changed when advancing a version number. Could add a comment there to help make sure we don't accidentally miss any places. Seems like there are a number of files now that need version string updating when doing a new release.

michaelpq commented 9 months ago

FWIW, it is not a big deal to me to add something on HEAD as well. Actually, doing so has the advantage that we are unlikely going to forget about it when generating a new stable branch.

"name": "pg_hint_plan16",

Appending the version after the name is okay for me. That's what happens already in the docs and such.

Adding extra folks to gather more opinions: @rjuju @yamatattsu @mikecaat. Particularly, who do you think should be added to the list of maintainers? It would not be cool to add somebody without asking for permission first. I am OK to be in the list of that helps :)

michaelpq commented 9 months ago

So, hearing nothing, I have spent some time reminding myself how all this stuff works (like https://pgxn.org/meta/spec.txt), and applied that down to 12 by using my own name as maintainer. If you'd like to tweak the existing list, feel free.

I'll go upload some tarballs to pgxn in a bit.