pgsql-server/ oc/src/sgml/libpq.sgml oc/src/sg ...

Started by Tom Laneover 23 years ago3 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: tgl@postgresql.org 03/04/21 20:08:07

Modified files:
doc/src/sgml : libpq.sgml protocol.sgml
src/backend/access/common: printtup.c
src/backend/commands: async.c copy.c
src/backend/libpq: auth.c pqcomm.c pqformat.c
src/backend/postmaster: postmaster.c
src/backend/tcop: dest.c fastpath.c postgres.c
src/backend/utils/error: elog.c
src/include/libpq: pqcomm.h pqformat.h
src/interfaces/libpq: fe-connect.c fe-exec.c fe-misc.c
libpq-int.h
src/test/regress/expected: alter_table.out copy2.out domain.out

Log message:
Another round of protocol changes. Backend-to-frontend messages now all
have length words. COPY OUT reimplemented per new protocol: it doesn't
need \. anymore, thank goodness. COPY BINARY to/from frontend works,
at least as far as the backend is concerned --- libpq's PQgetline API
is not up to snuff, and will have to be replaced with something that is
null-safe. libpq uses message length words for performance improvement
(no cycles wasted rescanning long messages), but not yet for error
recovery.

#2Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Tom Lane (#1)
Re: pgsql-server/ oc/src/sgml/libpq.sgml oc/src/sg ...

Another round of protocol changes. Backend-to-frontend messages now all
have length words. COPY OUT reimplemented per new protocol: it doesn't
need \. anymore, thank goodness.

What are the backwards compatibility issues with that particular change?

Chris

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Christopher Kings-Lynne (#2)
Re: pgsql-server/ oc/src/sgml/libpq.sgml oc/src/sg ...

"Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:

Another round of protocol changes. Backend-to-frontend messages now all
have length words. COPY OUT reimplemented per new protocol: it doesn't
need \. anymore, thank goodness.

What are the backwards compatibility issues with that particular change?

None, it's hidden by libpq: PQgetline manufactures a "\." at end of data.

The PQgetline API is pretty sucky anyway and will be deprecated once the
dust settles, but apps that use it will be no more nor less broken than
they were before ...

regards, tom lane