Skip to content

fix(mimic-iv-ed): quote postgres mimic_data_dir for paths with spaces#2110

Closed
acnimma wants to merge 1 commit into
MIT-LCP:mainfrom
acnimma:fix/ed-postgres-quote-cd
Closed

fix(mimic-iv-ed): quote postgres mimic_data_dir for paths with spaces#2110
acnimma wants to merge 1 commit into
MIT-LCP:mainfrom
acnimma:fix/ed-postgres-quote-cd

Conversation

@acnimma

@acnimma acnimma commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Use \cd :''mimic_data_dir'' in ED load.sql / load_gz.sql / load_7z.sql

Test plan

  • Load with mimic_data_dir containing a space succeeds
  • Path without spaces still works

Same space-safe psql quoting as the III datadir fix: unquoted \cd :mimic_data_dir splits on spaces. Quote the variable in all three ED load scripts.

\cd :mimic_data_dir breaks when the data directory contains spaces.
Use psql quoted-variable form \cd :''mimic_data_dir'' like the III fix.
@alistairewj

Copy link
Copy Markdown
Member

same as #2111 and #2116 this broke the build on my nix machine so please add CI to verify it is fixing a real issue

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