Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql-client (and thus postgres) is missing in xbps-alternatives #43259

Closed
soanvig opened this issue Apr 4, 2023 · 3 comments
Closed

postgresql-client (and thus postgres) is missing in xbps-alternatives #43259

soanvig opened this issue Apr 4, 2023 · 3 comments
Labels

Comments

@soanvig
Copy link

soanvig commented Apr 4, 2023

Postgresql packages are missing each other as alternatives.
Is it expected or just omitted by an accident?

My case is that I have installed postgresql14-client, and postgresql15-client, and there are not appearing in xbps-alternatives, so I have to manually switch between them.

Telling from their package templates they don't have alternatives field. Is that right?

I can create appropriate PR after the confirmation, that this is the case.

@Chocimier I think you are the maintainer, so I'm pinging you

@Chocimier
Copy link
Member

Cześć,

That's expected but can be changed with 16 series.

Postgresql 9.6 occupied /usr/bin/psql and was removed only a year ago. While it was still in repo, newer series were installed in /usr/lib, as xbps can't yet transactionally replace executable with an alternative. In order for new series to be accessible, profile scripts adding them to PATH exist. Shadowing of newer series by older ones is a mistake, but not too bad.

This setup is still in place to give people time to pull in now-meta postgresql package. As 16 will enter repos well over a year after removal of 9.6, it will be good time to introduce alternatives.

For server, separate services are in place, so this is not a problem.

Another question is why do you want to switch client (continuously, afaiu?), when other options are to remove old package and relogin; call by absolute path; or manipulate PATH in shell rc file?

@soanvig
Copy link
Author

soanvig commented Apr 5, 2023

My case for switching is that I'm working on two projects in my work, and for local environment they use different versions of postgres.

But now I can tell, that using newer version of tools like pg_dump I can connect to older version of postgres, so I think version switching is not necessary. It was just not intuitive, that we have many versions available released under different package names.

I think this can be closed if you find that there is no thing to add

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.

@github-actions github-actions bot added the Stale label Jul 5, 2023
@soanvig soanvig closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants