query
default_transaction_read_only=on), so a
stray UPDATE can’t slip through unless you ask for it.
Arguments
Options
SQL source precedence:
--file > inline argument > stdin.
Examples
Inline read:Guardrails
Errors you might see
db
docker compose exec + psql command to open an interactive
shell into a clone’s database (clones share one Postgres container, so the
command targets the shared postgres service and selects the clone’s database
with -d). It doesn’t open the shell or touch Docker — it just gives you the
command to run, so you can copy it or pipe it.