mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-23 01:16:30 +00:00
1.0 KiB
1.0 KiB
Introduction
Thank you for contributing! Just a few tips here:
cargo fmtyour code before opening up a PR- Run the "test suite" (i.e. PgBench) to make sure everything still works.
Happy hacking!
TODOs
A non-exhaustive list of things that would be useful to implement.
Client authentication
MD5 is probably sufficient, but maybe others too.
Statistics
Same as PgBouncer, e.g. client wait, transactions, timings, etc. I'm thinking we can use mpsc here (docs), with clients sending stats and a task collecting and aggregating them. This should avoid atomics/mutexes. Caveat is the task should make sure not to crash, so the channels don't get backed up.
Admin
Admin database for stats collection and pooler administration. PgBouncer gives us a nice example on how to do that, specifically how to implement RowDescription and DataRow messages, example here.