Skip to content

Commit

Permalink
feat: add psql interactive shell note
Browse files Browse the repository at this point in the history
  • Loading branch information
jthodge committed Aug 24, 2024
1 parent 4806e1e commit 95a49cb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions postgres/psql-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,12 @@ We can also echo all queries that `psql` runs to stdout:
# or, short name:
# -e
```

## Run Shell Scripts from Within `psql`

```bash
\! pwd
```

Alternatively, invoking `\!` without a command will open an interactive shell.
After leaving this shell, you're returned to the previous `psql` session.

0 comments on commit 95a49cb

Please sign in to comment.