-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
Martin serving multiple database connections #1684
Comments
This might be badly documented or we might have a bug. We mean this like here: martin/martin/src/pg/config.rs Lines 196 to 198 in 2d3e4d0
=> a list of Could you recheck if you have 2 configs? If the issue is what I think it is, how would you have understood the docs how We meant it: # Database configuration.
#
# This can also be a list of postgres configurations (i.e. a list of the dicutionary shown below) |
I think if there was just an example shown , it would make the documentation better |
this is not valid yaml. listen_addresses: '0.0.0.0:3000'
postgres:
- connection_string: 'postgresql://server1'
default_srid: 4326
auto_bounds: skip
- connection_string: 'postgresql://server2'
default_srid: 4326
auto_bounds: skip |
Any documentation improvement PRs are welcome ;) |
Great thanks it works now thank you @nyurik @CommanderStorm |
Hi, I'm attempting to use Martin to serve from multiple Postgres databases. To do that I'm trying to setup Martin config where we can set up various 2 but potentially more Postgres databases
what have I tried so far?
I've tried adding two connection strings and it seems the second connection string overwrites the first one.
I've put a connection string in an array, but that also doesn't work.
in the Martin docs , it says
But confused about how to set it up .
Any Help would be appreciative.
The text was updated successfully, but these errors were encountered: