Skip to content

Fix target-clean.sh dynamic SQL quoting#49

Open
teknogeek0 wants to merge 2 commits intomainfrom
fix/target-clean-quote-ident
Open

Fix target-clean.sh dynamic SQL quoting#49
teknogeek0 wants to merge 2 commits intomainfrom
fix/target-clean-quote-ident

Conversation

@teknogeek0
Copy link
Copy Markdown
Contributor

Summary

  • Replace all bare identifier concatenation in dynamic DROP statements with quote_ident() so names containing slashes, spaces, or other special characters are handled correctly
  • Drop all publications dynamically from pg_publication rather than only the hardcoded pgcopydb_pub — source database publications copied by pgcopydb were surviving cleanup and blocking re-migration

Schemas with slashes (e.g. zero_0/cdc) and other special characters in
names would generate invalid SQL. Also drop all publications dynamically
rather than only the hardcoded pgcopydb ones.
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.

2 participants