Extends the PostgreSQL log capture (added in the `gen` job) to all `pg-*` CI jobs (`test-go-pg`, `test-go-pg-17`, `test-go-race-pg`). Since these jobs share the `./.github/actions/test-go-pg` composite action, the collect and upload steps are added there once, on the Linux path that runs the Docker postgres container (Windows/macOS use embedded postgres).
On failure, the steps run `make test-postgres-docker-logs` and upload the output as a per-job `postgres-logs-<job>` artifact. `POSTGRES_VERSION` is passed through so the target reads logs from the correct container (e.g. postgres 13 for `test-go-pg`).
<sub>Opened by Coder Agents on behalf of @spikecurtis.</sub>