postgresml / pgcat

PostgreSQL pooler with sharding, load balancing and failover support.
MIT License
3.13k stars 193 forks source link

Add 'Fail' mode when no shard selected #859

Open nothrow opened 2 weeks ago

nothrow commented 2 weeks ago

Implementation for feature request & proposed solution in https://github.com/postgresml/pgcat/issues/858.

Adds new option for default_shard.

magec commented 1 week ago

I am fine with the change but I think there should be tests for this. We are already testing the default_shard parameter here, adding one test case for fail should be straight forward.