Unverified Commit 59d59ee5 authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment