Repository navigation
Conversation
🦋 Changeset detectedLatest commit: ca937d0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 99e484d64d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
…ttp/cli-3194-pg-topo-repeated-create-schema-if-not-exists # Conflicts: # packages/pg-topo/src/graph/build-graph.ts # packages/pg-topo/test/diagnostics.test.ts
jgoux
left a comment
There was a problem hiding this comment.
The fix works: identical repeated create … if not exists statements no longer report DUPLICATE_PRODUCER, and statements that differ still do. Requesting one change: the fan-out makes the graph grow as copies × consumers. Details are inline.
TL;DR
stops
pgdelta schema lintfailing when each schema file repeatscreate schema if not exists.whats broken?
declarative layouts often open every file with
create schema if not exists app;so each file loads on its own.pg-topoflagged every copy as aDUPLICATE_PRODUCERand every statement using it as ambiguous, so lint failed on files Postgres loads fine.now fixed by:
identical
create … if not existsstatements now count as one object, so nothing is reported and anything using it runs after every copy. a plaincreatenext to anif not existsone, or two that differ, still report the duplicate.ref:
create schema if not existsis reported as DUPLICATE_PRODUCER #598