]> git.ipfire.org Git - thirdparty/suricata.git/commit
pgsql: add initial support to CopyIn mode/subproto
authorJuliana Fajardini <jufajardini@oisf.net>
Tue, 29 Apr 2025 13:33:38 +0000 (10:33 -0300)
committerJuliana Fajardini <jufajardini@oisf.net>
Wed, 4 Jun 2025 18:21:32 +0000 (15:21 -0300)
commit2086f99d6b152c318e5377528535f1755b3bca33
tree1de6b42246dbc99e8069d912bae745d6e2dfb496
parentd5c48259deaed929a4c3cfb095b61ddf7a7a301f
pgsql: add initial support to CopyIn mode/subproto

This sub-protocol inspects messages sent mainly from the frontend to
the backend after a 'COPY FROM STDIN' has been processed by the
backend.

Parses new messages:
- CopyInResponse -- initiates copy-in mode/sub-protocol
- CopyData (In) -- data transfer message, from frontend to backend
- CopyDone -- signals that no more CopyData messages will be seen from
  the frontend, for the current transaction
- CopyFail -- used by the frontend to signal some failure to proceed
  with sending CopyData messages

Task #7645
doc/userguide/output/eve/eve-json-format.rst
etc/schema.json
rust/src/pgsql/logger.rs
rust/src/pgsql/parser.rs
rust/src/pgsql/pgsql.rs