Files
sysbench/tests/t/help_drv_pgsql.t
Daniel Dinu 1947e5387a Command line flag to set the sslmode for PostgreSQL (Closes: #326)
The flag name and its values match libpq's sslmode connection parameter.
The default value (prefer) will first try an SSL connection; if that
fails, it will try a non-SSL connection.

Libpq documentation: https://www.postgresql.org/docs/14/libpq-connect.html#LIBPQ-CONNECT-SSLMODE
2021-11-18 23:39:39 -08:00

17 lines
593 B
Perl

Skip test if the PostgreSQL driver is not available.
$ if [ -z "$SBTEST_HAS_PGSQL" ]
> then
> exit 80
> fi
$ sysbench --help | sed -n '/pgsql options:/,/^$/p'
pgsql options:
--pgsql-host=STRING PostgreSQL server host [localhost]
--pgsql-port=N PostgreSQL server port [5432]
--pgsql-user=STRING PostgreSQL user [sbtest]
--pgsql-password=STRING PostgreSQL password []
--pgsql-db=STRING PostgreSQL database name [sbtest]
--pgsql-sslmode=STRING PostgreSQL SSL mode (disable, allow, prefer, require, verify-ca, verify-full) [prefer]