postgres=# select * from sessions where video_id = 'UzMxroqUuI0';
Configurable command tag, part 1
Explore custom command-completion tags returned to clients.
session summary
The session attempted to make PostgreSQL command-completion tags configurable, motivated by dump and restore output that says INSERT or COPY without identifying the relation. The proposed GUC would format tags with placeholders such as command name and relation names while preserving protocol compatibility. They threaded relation information through executor structures and reused a placeholder formatter, but the server repeatedly crashed because the helper was called incorrectly. The prototype remained unfinished, with lazy calculation of optional fields also identified as necessary.
timecodes
- Updates on earlier patches and reviews
- Why command tags need relation context
- A configurable placeholder-based tag format
- Threading relation names through query completion
- Adding the command_tag_format GUC
- Formatting command and relation placeholders
- Server crashes and binary-search debugging
- Incorrect helper usage and unfinished prototype