# 23 — Optional pgwire sidecar

**Target length:** 7 minutes  
**Kernel on camera:** 2.74.26  
**Audience:** Operator who already has SQL 2143 up. analog ≠ native Postgres. Do not enable VELOCE_AUTH on 2143.

**YouTube title:** psql against Veloce — pgwire sidecar on 127.0.0.1:15432

## On-screen beats

1. Workgroup already running. `SHOW VERSION` on 2143.
2. Start `node engine/pgwire-sidecar.mjs` (bundled in 2.74.26). Bind 127.0.0.1:15432.
3. `psql -h 127.0.0.1 -p 15432 -U veloce` — `\conninfo`, a COUNT or SELECT the sidecar can run.
4. An unsupported SQL line returns ERROR, not OK echo.
5. Slide: pgwire is a translator to testdb. Not a PG datadir. Not PgBouncer.

## GUI vs CLI

| Show in the GUI | Show in the terminal |
| --- | --- |
| None required | pgwire-sidecar log, psql |

## Spoken script

“Postgres wire is optional. The kernel natively speaks Tachyon ISAM and CRLF SQL. This sidecar speaks Postgres v3 to psql, psycopg, or SQLAlchemy inspect, and stores tables as testdb keys. Bind is loopback. analog ≠ native Postgres. Native Postgres and PgBouncer stay leftover EXTERNAL.”

```text
node engine/pgwire-sidecar.mjs
```

“Default is one twenty-seven dot zero dot zero dot one, port fifteen four thirty-two. It talks to SQL twenty-one forty-three on the same machine.”

```text
psql -h 127.0.0.1 -p 15432 -U veloce
```

Run a COUNT the sidecar can answer. Then a JOIN or DDL it cannot.

“Unsupported SQL is ERROR, not a fake OK. That is the honesty line. If you need real PostgreSQL, run PostgreSQL. If you need testdb with a familiar wire for inspect, this sidecar is the analog.”

Do not demo host01 CRM migrate. Do not copy testdb.bin. End on `/docs` migrate notes.
