Chore: Fix snapshot upload filter for incompatible SQL statements#1186
Chore: Fix snapshot upload filter for incompatible SQL statements#1186marcleblanc2 merged 4 commits intomainfrom
Conversation
| Predefined targets are available based on default Sourcegraph configurations ('docker', 'k8s'). | ||
| Custom targets configuration can be provided in YAML format with '--targets=target.yaml', e.g. | ||
|
|
||
| primary: |
There was a problem hiding this comment.
I don't think we should rename this in this change, as it's unrelated to the main thing being fixed, and is also a configuration change
I also don't think this is correct? If anything it should be called frontend https://sourcegraph.sourcegraph.com/github.com/sourcegraph/sourcegraph/-/blob/migrations/README.md but either way, I dont think we should change that here
There was a problem hiding this comment.
Hmm, I suppose we call the container pgsql in some places... I'm not sure that's what we want to align on though, and either way, separate change 🙏
There was a problem hiding this comment.
Noted, have removed it from this PR, will submit it in a new PR. From the self-hosted customer's perspective, this database is known as the pgsql database, as it's the container / pod they deal with.
|
Thanks! but let's keep PRs one-fix-at-a-time, and also I'm not sure |
Expanded the filtering mechanism beyond commenting on extensions, to address new features in Postgres v17 which are not available in our SG Cloud pg v16 databases, as well as SQL queries / commands which break Google Cloud SQL's very fragile import.
Also renamed "primary.sql" to "pgsql.sql" to be consistent, as this is the only place across our entire codebase that this database got yet-another-name.
Test plan
Tested on customer Cloud migration
Updated unit tests
Updated process docs for IE team performing these migrations