{"id":13513468,"url":"https://github.com/agroal/pgagroal","last_synced_at":"2025-03-31T02:32:23.142Z","repository":{"id":37797065,"uuid":"204962510","full_name":"agroal/pgagroal","owner":"agroal","description":"High-performance connection pool for PostgreSQL","archived":false,"fork":false,"pushed_at":"2024-09-16T12:04:21.000Z","size":3498,"stargazers_count":678,"open_issues_count":29,"forks_count":60,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-09-16T13:53:15.707Z","etag":null,"topics":["connection","high-performance","pool","postgresql"],"latest_commit_sha":null,"homepage":"https://agroal.github.io/pgagroal/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agroal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-28T15:19:42.000Z","updated_at":"2024-09-16T12:04:25.000Z","dependencies_parsed_at":"2023-10-14T20:27:21.588Z","dependency_job_id":"66628e64-db35-4d72-b2b3-9217cdce7ae2","html_url":"https://github.com/agroal/pgagroal","commit_stats":null,"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agroal%2Fpgagroal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agroal%2Fpgagroal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agroal%2Fpgagroal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agroal%2Fpgagroal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agroal","download_url":"https://codeload.github.com/agroal/pgagroal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222615145,"owners_count":17012022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["connection","high-performance","pool","postgresql"],"created_at":"2024-08-01T05:00:27.124Z","updated_at":"2025-03-31T02:32:23.136Z","avatar_url":"https://github.com/agroal.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# pgagroal\n\n[**pgagroal**](https://github.com/agroal/pgagroal) is a high-performance protocol-native connection pool for [PostgreSQL](https://www.postgresql.org).\n\nPronounced: p-g-a-gro-al, named after [A](https://www.visitportugal.com/en/content/praia-fluvial-do-agroal)[gro](https://www.google.com/maps/place/Agroal,+Portugal/@39.6775431,-8.4486056,14z/)[al](https://www.infatima.pt/en/nearby/sun-sea/fluvial-beaches/agroal/) in Portugal.\n\n## Features\n\n* High performance\n* Connection pool\n* Limit connections for users and databases\n* Prefill support\n* Remove idle connections\n* Perform connection validation\n* Enable / disable database access\n* Graceful / fast shutdown\n* Prometheus support\n* Grafana 8 dashboard\n* Remote management\n* Authentication query support\n* Failover support\n* Transport Layer Security (TLS) v1.2+ support\n* Daemon mode\n* User vault\n\nSee [Getting Started](./doc/GETTING_STARTED.md) on how to get started with [**pgagroal**](https://github.com/agroal/pgagroal).\n\nSee [Configuration](./doc/CONFIGURATION.md) on how to configure [**pgagroal**](https://github.com/agroal/pgagroal).\n\nSee [Performance](./doc/PERFORMANCE.md) for a performance run.\n\n## Overview\n\n[**pgagroal**](https://github.com/agroal/pgagroal) makes use of\n\n* Process model\n* Shared memory model across processes\n* [libev](http://software.schmorp.de/pkg/libev.html) for fast network interactions\n* [Atomic operations](https://en.cppreference.com/w/c/atomic) are used to keep track of state\n* The [PostgreSQL](https://www.postgresql.org) native protocol\n  [v3](https://www.postgresql.org/docs/11/protocol-message-formats.html) for its communication\n\n[**pgagroal**](https://github.com/agroal/pgagroal) will work with any [PostgreSQL](https://www.postgresql.org) compliant driver, for example\n[pgjdbc](https://jdbc.postgresql.org/), [Npgsql](https://www.npgsql.org/) and [pq](https://github.com/lib/pq).\n\nSee [Architecture](./doc/ARCHITECTURE.md) for the architecture of [**pgagroal**](https://github.com/agroal/pgagroal).\n\n## Tested platforms\n\n* [Fedora](https://getfedora.org/) 38+\n* [RHEL 9.x](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9)\n* [Rocky Linux 9.x](https://rockylinux.org/)\n\n* [FreeBSD](https://www.freebsd.org/)\n* [OpenBSD](http://www.openbsd.org/)\n\n\n## Compiling from sources\n\n[**pgagroal**](https://github.com/agroal/pgagroal) can be compiled from sources,\nafter having installed all the required dependencies:\n\n* [gcc 8+](https://gcc.gnu.org) (C17) or [clang 8+](https://clang.llvm.org/)\n* [cmake](https://cmake.org)\n* [GNU make](https://www.gnu.org/software/make/) or BSD `make`\n* [libev](http://software.schmorp.de/pkg/libev.html)\n* [OpenSSL](http://www.openssl.org/)\n* [rst2man](https://docutils.sourceforge.io/)\n* [libatomic](https://gcc.gnu.org/wiki/Atomic)\n* [Doxygen](https://doxygen.nl/index.html)\n* [pdflatex](https://tug.org/texlive/)\n* [systemd](https://www.freedesktop.org/wiki/Software/systemd/) (on Linux systems)\n* [zlib](https://zlib.net)\n* [zstd](http://www.zstd.net)\n* [lz4](https://lz4.github.io/lz4/)\n* [bzip2](http://sourceware.org/bzip2/)\n\n\nSee the [documentation about installing the required dependencies](doc/DISTRIBUTIONS.md).\n\n\n### Release build\n\nThe following commands will install [**pgagroal**](https://github.com/agroal/pgagroal) in the `/usr/local` hierarchy\nand run the default configuration.\n\n```sh\ngit clone https://github.com/agroal/pgagroal.git\ncd pgagroal\nmkdir build\ncd build\ncmake -DCMAKE_INSTALL_PREFIX=/usr/local ..\nmake\nsudo make install\n/usr/local/bin/pgagroal -c /usr/local/etc/pgagroal/pgagroal.conf -a /usr/local/etc/pgagroal/pgagroal_hba.conf\n```\n\nSee [RPM](./doc/RPM.md) for how to build a RPM of [**pgagroal**](https://github.com/agroal/pgagroal).\n\n### Debug build\n\nThe following commands will create a `DEBUG` version of [**pgagroal**](https://github.com/agroal/pgagroal).\n\n```sh\ngit clone https://github.com/agroal/pgagroal.git\ncd pgagroal\nmkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Debug ..\nmake\ncd src\ncp ../../doc/etc/*.conf .\n./pgagroal -c pgagroal.conf -a pgagroal_hba.conf\n```\n\nRemember to set the `log_level` configuration option to `debug5`.\n\n## Contributing\n\nContributions to [**pgagroal**](https://github.com/agroal/pgagroal) are managed on [GitHub.com](https://github.com/agroal/pgagroal/)\n\n* [Ask a question](https://github.com/agroal/pgagroal/discussions)\n* [Raise an issue](https://github.com/agroal/pgagroal/issues)\n* [Feature request](https://github.com/agroal/pgagroal/issues)\n* [Code submission](https://github.com/agroal/pgagroal/pulls)\n\nContributions are most welcome !\n\nPlease, consult our [Code of Conduct](./CODE_OF_CONDUCT.md) policies for interacting in our\ncommunity.\n\nConsider giving the project a [star](https://github.com/agroal/pgagroal/stargazers) on\n[GitHub](https://github.com/agroal/pgagroal/) if you find it useful. And, feel free to follow\nthe project on [Twitter](https://twitter.com/pgagroal/) as well.\n\n## License\n\n[BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagroal%2Fpgagroal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagroal%2Fpgagroal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagroal%2Fpgagroal/lists"}