mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-28 11:16:29 +00:00
👍
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user