Commit Graph

1901 Commits

Author SHA1 Message Date
Andrey Borodin f4ea09b7f6 Combine different log_query settings with logical OR instead of AND 2021-02-11 12:56:19 +05:00
Marc Rechté 2ef4913f4e Allow to log_query per route, rather than globally (global flag remains). 2021-02-09 14:02:17 +01:00
Marc Rechté cee665fb45 Allow link to dynamic libpq (.so). Builds OK on ArchLinux. 2021-02-09 13:57:07 +01:00
Andrey Borodin 4ec58fff15
Send FATAL when client is disconnected. (#271)
* Send FATAL when client is disconnected.
Some dirvers do not recognize errors when thay are followed by ERROR message instead of FATAL.

* Apply fmt
2021-01-31 17:37:06 +05:00
kirill reshke 6f4e1e5d59
make smooth connection release while online restart better (#268)
Co-authored-by: reshke <Kirill Reshke>
2021-01-26 14:18:13 +05:00
kirill reshke b546551bb8
do not hold repilation connections while online restart + drop conn rate logic (#266)
* do not hold repilation connections while online restart

* drop connection wtih rate (no more that 1 per sec)

* fix review

* eject info per-server

* use per thread global state to smoothly eject old connection

Co-authored-by: reshke <Kirill Reshke>
2021-01-23 18:49:54 +05:00
kirill reshke 9bed642b30
drop old server connection while online restrat in session pooling mode (#263)
Co-authored-by: reshke <Kirill Reshke>
2021-01-21 16:24:43 +05:00
rechtem 40fd90eb7f
Fix Makefile in order to build on RHEL8/CentOS8 (#264) 2021-01-18 15:11:07 +05:00
kirill reshke d8b0cee67c
fix local database conection stuck & tests (#262)
Co-authored-by: reshke <Kirill Reshke>
2021-01-14 15:40:01 +05:00
kirill reshke 8a3831b082
Makefile build targets + quantileins memfree fix + online restart condition recheck (#261) 2021-01-14 11:54:16 +05:00
kirill reshke 23dafccc95
save config file name value on start (#260) 2021-01-12 15:18:24 +05:00
kirill reshke f305546e9c
fix scram build & tests, also make makefile a little bit more clear && better (#259)
* fix scram build & tests, also make makefile a little bit more clear and parametrized

* fix fmt & fmt target better

* remove shell test from tests run

Co-authored-by: reshke <Kirill Reshke>
2021-01-12 12:06:27 +05:00
kirill reshke 919c5c188a
debian infrastructure better + cmake fixes (#258)
* change debian build version

* some cmake lists fixes

Co-authored-by: reshke <Kirill Reshke>
2021-01-11 15:32:56 +05:00
kirill reshke b071fd1633
do not find openssl package when it explicitly provided, also make use scram optional (#257)
Co-authored-by: reshke <Kirill Reshke>
2021-01-11 14:13:02 +05:00
kirill reshke 2d5af34b01
get rid of add_compile_definitions in cmake lists (#256)
Co-authored-by: reshke <Kirill Reshke>
2021-01-11 13:27:24 +05:00
kirill reshke 34847780e3
cmake fix: use UTC time in RFC 5322 format (#255)
Co-authored-by: reshke <Kirill Reshke>
2021-01-11 13:07:46 +05:00
reshke 91b56831ee fix cmake tabulation 2020-12-30 22:25:40 +05:00
reshke e35b687bd6 odyssey: fix test: sepaarse build and up 2020-12-30 22:25:40 +05:00
reshke 0d3af349ca fix test s exit code & fmt 2020-12-30 18:49:34 +05:00
reshke 0933d1ebb3 better 2020-12-30 18:49:34 +05:00
kirill reshke 73f10f7b6c
raise error on blocked used (#252)
Co-authored-by: reshke <Kirill Reshke>
2020-12-28 17:44:32 +05:00
kirill reshke c4878697ee
fix formatting & apply fmt target in MAkefiel (#251)
Co-authored-by: reshke <Kirill Reshke>
2020-12-28 16:22:53 +05:00
kirill reshke 3a55be6e61
change formatting (#250)
Co-authored-by: reshke <Kirill Reshke>
2020-12-28 15:43:31 +05:00
kirill reshke 7ceaca9f7f
fix config reload (#248)
Co-authored-by: reshke <Kirill Reshke>
2020-12-23 04:27:42 +05:00
reshke b6447b3104 fix cmake minimum version 2020-12-17 17:58:25 +05:00
reshke ace34dfc2b fix missed signal value 2020-12-17 17:58:25 +05:00
Georgy Rylov 8d23e8d97b
fix UB with uninitialized fields (#246) 2020-12-15 16:33:43 +05:00
Georgy Rylov d89829aa4a
Quantiles aggregation (#245)
* add aggregated collection of quantiles for all db-user routes

* fix quantiles names and memory leak in right place

* make apply_fmt

* review fixes
2020-12-14 18:18:37 +05:00
reshke a1f76ea5d6 Fix dockerfile to make CI ok 2020-12-07 22:48:54 +05:00
reshke d98fdedde7 separate build & clean targets in Makefile 2020-12-07 13:19:57 +05:00
kirill reshke 6f73355294
better (#239)
Co-authored-by: reshke <Kirill Reshke>
2020-12-01 17:33:57 +05:00
kirill reshke fb3ce93f56
fix one more compiler warning (#238)
Co-authored-by: reshke <Kirill Reshke>
2020-11-30 17:33:45 +05:00
Andrey Borodin 6613481477
Start Pages integration 2020-11-30 14:19:37 +05:00
Andrey Borodin 444533367c Set theme jekyll-theme-minimal 2020-11-30 14:19:18 +05:00
kirill reshke a2bc189587
Create cmake.yml 2020-11-30 14:15:14 +05:00
kirill reshke 89ef383056
fix build (#237)
Co-authored-by: reshke <Kirill Reshke>
2020-11-27 23:03:42 +05:00
kirill reshke dd52fbd83e
compiler hints + just make world a better place & formatting things (#236) 2020-11-25 15:17:15 +05:00
Daniil Zakhlystov e6781e8a4e
Rename OD_ escaping to MM_ && fix indentation for cmakelists (#235) 2020-11-23 18:57:56 +05:00
Daniil Zakhlystov e97f7e1f1c
Add compression toggle to config, cmake && Add dependencies to BuildDebian (#234)
* Add compression option to config

* Add BUILD_COMPRESSION option to cmake

* Escape identifiers

* Add preprocessing directives for OD_BUILD_COMPRESSION

* Add dependencies for BuildDebian

* apply fmt

Co-authored-by: root <root@ubuntu-build-machine.ru-central1.internal>
2020-11-23 16:55:42 +05:00
kirill reshke 68c1b70025
change default compiler standart (#233)
Co-authored-by: reshke <Kirill Reshke>
2020-11-23 16:42:44 +05:00
kirill reshke 785e85ab6f
Fix leaks and improve locking in cron (#229)
Also fix some warnings.
2020-11-23 14:13:28 +05:00
Daniil Zakhlystov dc9e2b03e7
Add kiwi to apply_fmt (#232) 2020-11-23 13:22:30 +05:00
Daniil Zakhlystov 222da0c70a
Implement libpq compression (#230)
* Add zlib and zstd to cmake

* Add zpq_stream to machinarium

--
zpq_stream is used for streaming compression/decompression of Postgres protocol

* Add zpq_stream-related functions to machinarium

* Add compression set/free/read/write logic to machinarium

* Add startup packet compression var to kiwi

* Add compression_ack backend message support for kiwi

* Add compression setup logic for main odyssey project

* apply fmt

* fix format #2

Co-authored-by: root <root@ubuntu-build-machine.ru-central1.internal>
2020-11-23 13:22:17 +05:00
Andrey Borodin b5aa221f8c
Fix leak of allocation in server object (#231)
* Fix msg leak in server connection error forwarding

* Better fix for the leak

* Fix

* Clean cleaning
2020-11-23 13:10:00 +05:00
Andrey Borodin 6feed42244
Smarter server connection control (#228)
* Smarter server connection control

* Fix function name again

* Format things up
2020-11-10 13:38:26 +05:00
munakoiso d118172da0
Merge pull request #227 from reshke/master
make headers better
2020-11-03 14:31:21 +05:00
reshke 3965574b8a make headers better 2020-11-03 13:52:31 +05:00
kirill reshke eaae0eff47
fix debian & cmake (#226)
Co-authored-by: reshke <Kirill Reshke>
2020-11-03 12:24:48 +05:00
kirill reshke bc568250bf
odyssey tests with asan, little test refactor (#225)
* odyssey tests with asan

* better headers, rework test

Co-authored-by: reshke <Kirill Reshke>
2020-10-27 13:47:25 +05:00
kirill reshke a5f716025c
fix coveirty issues + remove legacy (#224)
* fix a couple of severity issues

* emove lagacy

* zero cost debug macros on release

* dbg macro fix

* apply fmt

Co-authored-by: reshke <Kirill Reshke>
2020-10-26 17:29:05 +05:00