When transforming into a SQL file, write to a partial file first. (#186)
Writing directly to the output file opens a window where the file exists and can be read with partial content, either from pgcopydb itself, or from an external tooling. Using a temp filename then switching to the actual expected file protects again partial reads and parse failures.
parent
59831f97
Please register or sign in to comment