2
0

Add deallocate to pipeline mode

This commit is contained in:
Jack Christensen
2022-07-07 19:32:01 -05:00
parent 1168b375e4
commit a86f4f3db9
3 changed files with 66 additions and 0 deletions
+10
View File
@@ -136,6 +136,16 @@ func (f *Frontend) SendParse(msg *Parse) {
}
}
// SendClose sends a Close message to the backend (i.e. the server). The message is not guaranteed to be written until
// Flush is called.
func (f *Frontend) SendClose(msg *Close) {
prevLen := len(f.wbuf)
f.wbuf = msg.Encode(f.wbuf)
if f.tracer != nil {
f.tracer.traceClose('F', int32(len(f.wbuf)-prevLen), msg)
}
}
// SendDescribe sends a Describe message to the backend (i.e. the server). The message is not guaranteed to be written until
// Flush is called.
func (f *Frontend) SendDescribe(msg *Describe) {