Youssef Ali
Youssef Ali
## Summary This issue tracks the addition of unit tests for three modules that currently have little or no test coverage: `value`, `json`, and `utils`. ## Motivation While exploring the...
Is your feature request related to a problem? Please describe. The string-building helpers in src/libpgexporter/utils.c pgexporter_append, pgexporter_append_int, pgexporter_append_char, and pgexporter_compare_string have no dedicated unit-test coverage. These helpers are used throughout...
**Is your feature request related to a problem? Please describe.** The string helpers in `src/libpgagroal/utils.c` — `pgagroal_append`, `pgagroal_append_int`, `pgagroal_append_char`, and `pgagroal_compare_string` — are used throughout the codebase but have no...
**Describe the bug** A server whose `host` is a directory (PostgreSQL over a Unix domain socket) can never be reached. pgagroal builds the socket file name twice and ends up...
**Describe the bug** `pgagroal --version`, `pgagroal-cli --version` and `pgagroal-admin --version` print the version and then exit with status 1. Printing the version is a successful run, so the status should...
**Describe the bug** `pgagroal-vault --version` crashes with a segmentation fault and prints nothing. Any other unknown long option does the same. The `long_options` array passed to `getopt_long()` has no terminating...
**Describe the bug** With `-d`, pgagroal forks and calls `setsid()`, but the daemon keeps the standard input, output and error it was started with ([`src/main.c:1136-1143`](https://github.com/pgagroal/pgagroal/blob/7c271ec/src/main.c#L1136-L1143)). If those are a pipe,...
**Describe the bug** `log_path` is stored in a `char[MISC_LENGTH]` (128 bytes). A longer value is cut to 127 characters when the configuration is read, with no warning or error ([`configuration.c:6282-6291`](https://github.com/pgagroal/pgagroal/blob/7c271ec/src/libpgagroal/configuration.c#L6282-L6291),...
**Describe the bug** On macOS, when many clients connect at the same moment, a few of them are dropped in the middle of their first query. Every drop comes with...
**Is your feature request related to a problem? Please describe.** `max_connections` in `pgagroal.conf` is only checked against pgagroal's own compile-time limit ([`configuration.c:554-558`](https://github.com/pgagroal/pgagroal/blob/7c271ec/src/libpgagroal/configuration.c#L554-L558)). It is never compared with what the PostgreSQL...