Update psql for some features of new FE/BE protocol. There is a
Tom Lane <tgl@sss.pgh.pa.us>
Update psql for some features of new FE/BE protocol. There is a client-side AUTOCOMMIT mode now: '\set AUTOCOMMIT off' supports SQL-spec commit behavior. Get rid of LO_TRANSACTION hack --- the LO operations just work now, using libpq's ability to track the transaction status. Add a VERBOSE variable to control verboseness of error message display, and add a %T prompt-string code to show current transaction-block status. Superuser state display in the prompt string correctly follows SET SESSION AUTHORIZATION commands. Control-C works to get out of COPY IN state.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/psql-ref.sgml | modified | +87 −92 |
| doc/src/sgml/release.sgml | modified | +2 −2 |
| src/bin/psql/command.c | modified | +77 −41 |
| src/bin/psql/command.h | modified | +10 −8 |
| src/bin/psql/common.c | modified | +132 −48 |
| src/bin/psql/common.h | modified | +4 −2 |
| src/bin/psql/copy.c | modified | +2 −9 |
| src/bin/psql/copy.h | modified | +1 −2 |
| src/bin/psql/large_obj.c | modified | +87 −175 |
| src/bin/psql/prompt.c | modified | +30 −10 |
| src/bin/psql/settings.h | modified | +2 −4 |
| src/bin/psql/startup.c | modified | +14 −25 |
| src/bin/psql/variables.c | modified | +14 −31 |
| src/bin/psql/variables.h | modified | +7 −7 |