# recipes/documents-on-postgres

Documents kept in Postgres: a writer killed mid-edit, eight processes opening one name at once, and a path declared after the data was there.

Documents in Postgres: a process that dies mid-edit, eight processes opening one name at once, and a path declared after the data was already there.

A real server and real child processes, because all three of these are about what survives something the writer did not agree to. A close and reopen inside one process is the case a store gets right by accident.

```sh
node recipes/documents-on-postgres/main.ts
```

## Files

- [`main.ts`](/docs/recipes/documents-on-postgres/files/main.ts)
