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
In an automated testing environment, it is often needed to pre-load a db with some data. This is usually done by a script, e.g. /docker-entrypoint-initdb.d/10_init.sh
The script would then run psql -e -P pager=off -v ON_ERROR_STOP=1 -f "some_sql_file.sql" - but the problem is that there is no documented way to prevent database from starting up in case an error occurs, even if the script has set -euo pipefail at the beginning.