Mostafa Abdelraouf
106ebee71c
Fix local dev ( #112 )
...
* Fix Dev env
* Update tests/sharding/query_routing_setup.sql
* Update tests/sharding/query_routing_setup.sql
* bring pgcat.toml on ci and local dev to parity
* more parity
* pool names
* pool names
* less diff
* fix tests
* fmt
* add other user to setup
Co-authored-by: Lev Kokotov <levkk@users.noreply.github.com >
2022-08-08 13:15:48 -07:00
Mostafa Abdelraouf
b79f55abd6
Generate test coverage report in CircleCI ( #110 )
...
* coverage?
* generate_coverage
* +x
* 1.62.1
* 62
* ignore
* store
* quote
2022-08-08 07:51:36 -07:00
Mostafa Abdelraouf
b828e62408
Report banned addresses as disabled ( #111 )
2022-08-08 07:50:29 -07:00
Mostafa Abdelraouf
499612dd76
Add user to SHOW STATS query ( #108 )
...
* Add user to SHOW STATS query
* user_name => username
2022-08-03 18:16:53 -07:00
Mostafa Abdelraouf
5ac85eaadd
Fix Python tests and remove CircleCI-specific path ( #106 )
...
* Remove CircleCI-specific path in tests
* ..?
* Fix testsP
* Fix python test
* remove pip
* Maybe fail?
* return code?
* no &
* Fix tests
2022-08-02 15:52:22 -07:00
Pradeep Chhetri
20e8f9d74c
Sync pgcat config for docker-compose ( #104 )
2022-08-02 09:23:35 -07:00
Mostafa Abdelraouf
1b648ca00e
Send proper server parameters to clients using admin db ( #103 )
...
* Send proper server parameters to clients using admin db
* clean up
* fix python test
* build
* Add python
* missing &
* debug ls
* fix tests
* fix tests
* fix
* Fix warning
* Address comments
2022-07-31 19:52:23 -07:00
Mostafa Abdelraouf
35381ba8fd
Add test for config Serializer ( #102 )
...
* Add test for serializer
* fmt
2022-07-30 16:28:25 -07:00
Mostafa Abdelraouf
e591865d78
Avoid ValueAfterTable when serializing configs ( #101 )
2022-07-30 16:12:02 -07:00
Mostafa Abdelraouf
48cff1f955
Slightly more light weight health check ( #100 )
2022-07-29 11:58:25 -07:00
Mostafa Abdelraouf
8a06fc4047
Add Serialize trait to configs ( #99 )
2022-07-28 15:42:04 -07:00
Pradeep Chhetri
14d4dc45f5
Minor fix for some stats ( #97 )
2022-07-27 22:59:33 -07:00
Mostafa Abdelraouf
2ae4b438e3
Add support for multi-database / multi-user pools ( #96 )
...
* Add support for multi-database / multi-user pools
* Nothing
* cargo fmt
* CI
* remove test users
* rename pool
* Update tests to use admin user/pass
* more fixes
* Revert bad change
* Use PGDATABASE env var
* send server info in case of admin
2022-07-27 19:47:55 -07:00
Lev Kokotov
c5be5565a5
Update Dockerfile
2022-07-25 22:25:59 -07:00
dependabot[bot]
eff8e3e229
Bump activerecord from 7.0.2.2 to 7.0.3.1 in /tests/ruby ( #94 )
...
Bumps [activerecord](https://github.com/rails/rails ) from 7.0.2.2 to 7.0.3.1.
- [Release notes](https://github.com/rails/rails/releases )
- [Changelog](https://github.com/rails/rails/blob/v7.0.3.1/activerecord/CHANGELOG.md )
- [Commits](https://github.com/rails/rails/compare/v7.0.2.2...v7.0.3.1 )
---
updated-dependencies:
- dependency-name: activerecord
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-12 13:24:41 -07:00
Marco Montagna
ae3db111ac
Merge pull request #91 from levkk/levkk-tls-2
...
Support for TLS
2022-06-27 17:12:50 -07:00
Lev
8bcfbed574
forgotten comment
2022-06-27 17:07:40 -07:00
Lev
773602dedf
Im about to get a nasty email
2022-06-27 17:06:49 -07:00
Lev
21bf07258c
lock em up
2022-06-27 17:05:45 -07:00
Lev
186f8be5b3
lint
2022-06-27 17:01:40 -07:00
Lev
7667fefead
config check
2022-06-27 17:01:14 -07:00
Lev
c11d595ac7
bye
2022-06-27 16:46:03 -07:00
Lev
8f3202ed92
hmm
2022-06-27 16:45:41 -07:00
Lev
eb58920870
at least it compiles
2022-06-27 15:52:01 -07:00
Lev Kokotov
b974aacd71
check
2022-06-27 09:46:33 -07:00
Lev Kokotov
7dfe59a91a
Fix stats dymanic reload ( #87 )
2022-06-25 12:22:46 -07:00
Lev Kokotov
5bcd3bf9c3
Automatically reload config every seconds (disabled by default) ( #86 )
...
* Automatically reload config every seconds (disabld by default)
* add that
2022-06-25 11:46:20 -07:00
Lev Kokotov
f06f64119c
Fix panic & query router bug ( #85 )
...
* Fix query router bug
* Fix panic
2022-06-24 15:14:31 -07:00
Lev Kokotov
b93303eb83
Live reloading entire config and bug fixes ( #84 )
...
* Support reloading the entire config (including sharding logic) without restart.
* Fix bug incorrectly handing error reporting when the shard is set incorrectly via SET SHARD TO command.
selected wrong shard and the connection keep reporting fatal #80 .
* Fix total_received and avg_recv admin database statistics.
* Enabling the query parser by default.
* More tests.
2022-06-24 14:52:38 -07:00
Lev Kokotov
d865d9f9d8
readme
v0.2.1-beta1
2022-06-20 06:20:12 -07:00
Lev Kokotov
d3310a62c2
Client md5 auth and clean up scram ( #77 )
...
* client md5 auth and clean up scram
* add pw
* add user
* add user
* log
2022-06-20 06:15:54 -07:00
Lev Kokotov
d412238f47
Implement SCRAM-SHA-256 for server authentication (PG14) ( #76 )
...
* Implement SCRAM-SHA-256
* test it
* trace
* move to community for auth
* hmm
v0.2.0-beta1
2022-06-18 18:36:00 -07:00
dependabot[bot]
7782933f59
Bump regex from 1.5.4 to 1.5.5 ( #75 )
...
Bumps [regex](https://github.com/rust-lang/regex ) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/rust-lang/regex/releases )
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.5 )
---
updated-dependencies:
- dependency-name: regex
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-06 19:59:50 -07:00
Lev Kokotov
bac4e1f52c
Only set application_name if it's different ( #74 )
...
* Only set application_name if it's different
* keep server named pgcat until something else changes
2022-06-05 09:48:06 -07:00
Lev Kokotov
37e3a86881
Pass application_name to server ( #73 )
...
* Pass application_name to server
* fmt
2022-06-03 00:15:50 -07:00
Lev Kokotov
61db13f614
Fix memory leak in client/server mapping ( #71 )
v0.1.0-beta3
2022-05-18 16:24:03 -07:00
Lev Kokotov
fe32b5ef17
Reduce traffic on the stats channel ( #69 )
2022-05-17 13:05:25 -07:00
Lev Kokotov
54699222f8
Possible fix for clients waiting stat leak ( #68 )
2022-05-14 21:35:33 -07:00
Lev Kokotov
ccbca66e7a
Poorly behaved client fix ( #65 )
...
* Poorly behaved client fix
* yes officer
* fix tests
* no useless rescue
* Looks ok
v0.1.0-beta2
2022-05-09 09:09:22 -07:00
Lev Kokotov
df85139281
Update README. Comments. Version bump. ( #60 )
...
* update readme
* comments
* just a version bump
2022-03-10 01:33:29 -08:00
Lev Kokotov
509e4815a3
Update README.md
2022-03-08 17:48:26 -08:00
Lev Kokotov
5338ff2323
Update README.md
2022-03-08 17:46:46 -08:00
Lev Kokotov
1ea0a7f332
Update README.md
2022-03-08 17:45:54 -08:00
Lev Kokotov
d1b86d363d
Update README.md
2022-03-08 17:38:51 -08:00
Lev Kokotov
b309ead58f
Handle SIGTERM. Add docker-compose.yml ( #59 )
...
* docker-compsoe
* remove statsd config
* readme
2022-03-08 17:18:48 -08:00
Lev Kokotov
341ebf4123
docs and remove Option ( #58 )
...
* docs and remove Option
* lint
v0.1.0-beta
2022-03-07 23:05:40 -08:00
Lev Kokotov
35828a0a8c
Per-shard statistics ( #57 )
...
* per shard stats
* aight
* cleaner
* fix show lists
* comments
* more friendly
* case-insensitive
* test all shards
* ok
* HUH?
2022-03-04 17:04:27 -08:00
Lev Kokotov
1e8fa110ae
Fix pgbouncerhero ( #54 )
2022-03-02 14:46:31 -08:00
Lev Kokotov
d4186b7815
More admin ( #53 )
...
* more admin
* more admin
* show lists
* tests
2022-03-01 22:49:43 -08:00
Lev Kokotov
aaeef69d59
Refactor admin ( #52 )
2022-03-01 08:47:19 -08:00