You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test = withSystemTempDirectory "test"$\dir ->do
withDb (dir </>"db") $\_ ->return()
looks reasonable but causes scary-looking (but benign) output:
pg_ctl: directory "/run/user/1000/test-af26b0f35c589919/db/work" is not a database cluster directory
gargoyle-nix-postgres-monitor: /run/user/1000/test-af26b0f35c589919/db/control: removeLink: does not exist (No such file or directory)
It seems that withDb returns before gargoyle actually shuts down, and therefore withSystemDirectory deletes the postgres instance before pg_ctl has a chance to shut it down.
The text was updated successfully, but these errors were encountered:
This:
looks reasonable but causes scary-looking (but benign) output:
It seems that
withDb
returns before gargoyle actually shuts down, and thereforewithSystemDirectory
deletes the postgres instance before pg_ctl has a chance to shut it down.The text was updated successfully, but these errors were encountered: