Incident Brief
What happened: A statement was rejected because of how it was written or what value it carried — not because of missing objects or permissions:
ERROR: subquery must return only one column
Immediate action: 1. Read the message — it states precisely what PostgreSQL objected to.
2. Select a single column in the subquery, or restructure as a row/tuple/">record or a join if you genuinely need multiple columns.
3.
The fix
- Read the message — it states precisely what PostgreSQL objected to.
- Select a single column in the subquery, or restructure as a row/record or a join if you genuinely need multiple columns.
- Re