From 5ed27e35f35f6c354b1a7120ec3a3ce57f93e73e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 22 Apr 2003 00:08:07 +0000 Subject: 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. --- src/backend/libpq/auth.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/backend/libpq/auth.c') diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c index a5dc8eff2da..2edc919c6d2 100644 --- a/src/backend/libpq/auth.c +++ b/src/backend/libpq/auth.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.99 2003/04/19 00:02:29 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/libpq/auth.c,v 1.100 2003/04/22 00:08:06 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -512,8 +512,7 @@ sendAuthRequest(Port *port, AuthRequest areq) { StringInfoData buf; - pq_beginmessage(&buf); - pq_sendbyte(&buf, 'R'); + pq_beginmessage(&buf, 'R'); pq_sendint(&buf, (int32) areq, sizeof(int32)); /* Add the salt for encrypted passwords. */ -- cgit v1.2.3