Commit Graph

13 Commits

Author SHA1 Message Date
kirill reshke fade74703a
Reserve prep stmt (#397)
* Add typedef to enum declaration

* preserve prepared statement basics

* murmur hash impl

* Hash set and hash map

* Hash set and hash map

* Allow relay to rewrite packets

* Fixes

* tmp

* Fmt

* Rebase fixes

* Min working version

* Fix heap buffer overflow

* Add show server_prep_smtms command to console db

* Store prep stmts by body hash

* Fix deadlock in console show prep stmts

* Better discard

* CLeanup code

* Support for multiple override msgs

* Remove rewrite logic

* Config validation

* Fixes

* Fmt

* Deploy rewrited msgs only on sync state

* Fix memoty issues allocaltion

* Smart discard

* Fix asan

* Handle fronent close prepered statement msg

* Fix memory leak

* Fixes

* Tests

* Fix tests

* fix tests

* remove bin

* fix clang compiler warns

* Reduse matrix to 1 case, because it doesnt change anything, as tests runs inside docker
2022-01-18 14:08:15 +05:00
kirill reshke 4bb40a6088
Refactor: fix memory leak in pool, rename config files, drop scram routes from sample dev conf file (#401) 2022-01-10 13:47:54 +05:00
kirill reshke 0287a17ba5
Config override client pg options (#399)
* Alter route cmd

* Read override options from cnf

* Tests and fixs

* fixes

* Fix memory leak
2022-01-10 10:31:04 +05:00
Тимофей Шляпников d6e2c61087
Add roles in console DB (#371)
* Ldapless

* Ldapless

* Console are now considering roles

* For pull from origin

* Done, but not tested

* Works, but do not drop connections to console

* Update to origin

* Added drop connections with lowered role via reload

* Format and rename

* Fix makefile & dev.conf

* Fix makefile & dev.conf

* Fix lagpolling tests

* Fix tests

* Fix tests

* Add tests & fix .conf

* Add tests & fix .conf

* Add tests & fix .conf

Co-authored-by: tim-shlyap <tim-shlyap@yandex-team.ru>
2021-12-16 04:08:42 +05:00
kirill reshke 3562245b58
Support tls mode changes while reloading config (#389) 2021-12-13 14:05:16 +05:00
kirill reshke d215160b3a
Fix compiler warnings (#386) 2021-12-09 16:34:04 +05:00
kirill reshke cb508c3d78
Fix scram with pg version num >= 140 000 (#383) 2021-12-09 12:26:27 +05:00
kirill reshke ee9b0e23e2
Fix config validation for auth query when there is no PAM module avai… (#382)
* Fix config validation for auth query when there is no PAM module available in system

* Fix compiler warns

Co-authored-by: Kirill Reshke <reshke@qavm-da1bb86b.qemu>
2021-12-09 12:26:20 +05:00
kirill reshke ba6513323f
Add storage watchdog with standby lag polling support (#380)
* Move auth query server querying logic to separate file

* Refactor query code to support not only "auth_query" like queries

* Move storage logic to separate file & add storage watchdog

* Force several settings on starts

* Fix simple query parsing

* Fixed bugs

* Fix config reload

* Add tests

* Move cathcup logic to separate func

* Fix tests[2]

Co-authored-by: Andrey Borodin <amborodin@acm.org>
2021-12-08 15:54:43 +05:00
reshke 70b4c6f3e6 Feature: ability to use connections separate pooling with auth query 2021-12-06 09:12:23 +00:00
reshke a9a6c07044 Refactor rule pool, add internal pooling feature 2021-12-06 08:28:02 +00:00
reshke 8967555f61 Fix for auth query when user password is empty 2021-12-05 15:51:00 +00:00
reshke 60179948ae Moved dev condigs to special folder 2021-11-29 16:03:32 +05:00