This commit is contained in:
Lev Kokotov
2022-02-05 15:33:10 -08:00
parent 7133d049c6
commit 9ac5614d50
2 changed files with 2 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ pgbench -t 1000 -p 5433 -h 127.0.0.1 --protocol extended
## Features ## Features
1. Session mode. 1. Session mode.
2. Transaction mode (basic). 2. Transaction mode.
3. `COPY` protocol support. 3. `COPY` protocol support.
4. Query cancellation. 4. Query cancellation.
5. Round-robin load balancing of replicas. 5. Round-robin load balancing of replicas.

View File

@@ -30,7 +30,7 @@ pub async fn server_parameters(stream: &mut TcpStream) -> Result<(), Error> {
// Client encoding // Client encoding
let len = client_encoding.len() as i32 + 4; // TODO: add more parameters here let len = client_encoding.len() as i32 + 4; // TODO: add more parameters here
let mut res = BytesMut::with_capacity(len as usize + 1); let mut res = BytesMut::with_capacity(64);
res.put_u8(b'S'); res.put_u8(b'S');
res.put_i32(len); res.put_i32(len);