PS: I also discovered you can modify the `lnav` behaviour by only showing new logs at the time of using the SSH command above:
```
#!/usr/bin/env bash
export TZ='Europe/Berlin';
NOW="$(date -Iseconds | sed -e 's/+.*$//')"
LOG_FILE="$(ls -t ~/pgdata/data/logs/*.log | head -n 1)"
if [ "$1" = "now" ]; then
lnav "$LOG_FILE" -c ":hide-lines-before $NOW"
else
lnav "$LOG_FILE"
fi
```
#ssh #lnav #postgresql #postgres #trigger #debugging #troubelshooting #pg_net #supabase