When streaming into a JSON file, write to a partial file first. (#187)
Writing directly to the target JSON file creates a windows where the file exists and can be read with partial content, either by pgcopydb itself or from external tooling. Using a temp filename then switching to the actual expected file protects again partial reads and parse failures.
parent
43ea82ea
Please register or sign in to comment