Now bind displays prepare as detail, and execute displays prepare and
Bruce Momjian <bruce@momjian.us>
Now bind displays prepare as detail, and execute displays prepare and optionally bind. I re-added the "statement:" label so people will understand why the line is being printed (it is log_*statement behavior). Use single quotes for bind values, instead of double quotes, and double literal single quotes in bind values (and document that). I also made use of the DETAIL line to have much cleaner output.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +2 −2 |
| src/backend/commands/portalcmds.c | modified | +2 −1 |
| src/backend/commands/prepare.c | modified | +2 −1 |
| src/backend/executor/spi.c | modified | +2 −1 |
| src/backend/tcop/postgres.c | modified | +63 −50 |
| src/backend/utils/mmgr/portalmem.c | modified | +3 −1 |
| src/include/utils/portal.h | modified | +4 −2 |