Skip to content

Connect to multiple databases #2784

Answered by steve-chavez
dattatre263 asked this question in Q&A
Discussion options

You must be logged in to vote

Not possible right now with a single instance. You'd have to run multiple postgrests.

There was some discussion about mapping a different db connection using the Host header but just that.

Edit: #2798


Tangentially related, but libpq 16 is bringing load balancing with multiple dbs: https://mydbops.wordpress.com/2023/05/07/postgresql-16-brings-load-balancing-support-in-libpq-psql/

I wonder if libpq is really the right place to build connection pooling over.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by steve-chavez
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants