Unverified Commit d19ae863 authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

Use PREPARE/EXECUTE statements for applying DML in follow mode. (#420)

* Introduce Bob Jenkins lookup3 hash function.

* Use PREPARE/EXECUTE statements for applying DML in follow mode.

When replaying INSERT/UPDATE/DELETE statements, switch to using PREPARE and
EXECUTE at the protocol level (using the libpq functions PQprepare and
PQexecPrepared). When a statement has already been prepared previously in
our session, we then only send the EXECUTE statement.

This shoud provide nice performance improvements.

* Fix ci/banned.h.sh.

Avoid using sscand(), use strtoull with a base 16 instead. In passing
clean-up some extra logging.

* Code review and refactoring.

* Suppress compilation warnings from Jenkins lookup3.c code.
parent 595b46f6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment