Skip to content

Comments

Only use postgis adapter for primary database#8914

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/use-postgis-adapter-only-for-primary
Aug 2, 2023
Merged

Only use postgis adapter for primary database#8914
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/use-postgis-adapter-only-for-primary

Conversation

@mitchellhenke
Copy link
Contributor

🛠 Summary of changes

We've been seeing some odd connection errors connecting to the worker database since #8536 (NewRelic). The major change was postgis adapter for connections to all databases, but since the worker database does not have postgis or use it, this PR changes it so the default connection is postgresql and the postgis databases override the `adapter.

This was tested in my sandbox.

changelog: Internal, Database, Only use postgis adapter for primary database
@mitchellhenke mitchellhenke requested review from a team and night-jellyfish August 1, 2023 15:11
Copy link
Contributor

@tomas-nava tomas-nava left a comment

Choose a reason for hiding this comment

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

I didn't sandbox test, but the change looks fine to me

@mitchellhenke mitchellhenke merged commit 1a56640 into main Aug 2, 2023
@mitchellhenke mitchellhenke deleted the mitchellhenke/use-postgis-adapter-only-for-primary branch August 2, 2023 21:07
adapter: postgis
replica: true
worker_jobs:
<<: *test
Copy link
Contributor

@allthesignals allthesignals Aug 2, 2023

Choose a reason for hiding this comment

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

Hmm... this spreads the "primary" entry, which looks like it's aliased as test... and test specifies the postgis adapter. Is that right? Everywhere else it looks like we prefer postgresql adapter for the worker_jobs entry...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants