From d351686a4df1b61f40ada69e53c9522259ad6700 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 27 Apr 2024 14:08:38 +0200 Subject: Adding upstream version 225+deb11u1. Signed-off-by: Daniel Baumann --- pg_virtualenv.pod | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 pg_virtualenv.pod (limited to 'pg_virtualenv.pod') diff --git a/pg_virtualenv.pod b/pg_virtualenv.pod new file mode 100644 index 0000000..3bd550e --- /dev/null +++ b/pg_virtualenv.pod @@ -0,0 +1,115 @@ +=head1 NAME + +pg_virtualenv - Create a throw-away PostgreSQL environment for running regression tests + +=head1 SYNOPSIS + +B [I] [B<-v> 'I'] [I] + +=head1 DESCRIPTION + +B creates a virtual PostgreSQL server environment, and sets +environment variables such that I can access the PostgreSQL database +server(s). The servers are destroyed when I exits. + +The environment variables B, B, B, and +B will be set. Per default, a single new cluster is created, +using the newest PostgreSQL server version installed. The cluster will use the +first available port number starting from B<5432>, and B will be set. +B is set the the PostgreSQL major version number. + +When clusters for more than one versions are created, they will differ in the +port number used, and B and B are not set. The clusters are +named I/regress. To access a cluster, set +BIB. For ease of access, the clusters are also +registered in F, with the version +number as cluster name. Clusters can be accessed by passing the connection +string "BI", e.g. B. + +When invoked as root, the clusters are created in F as usual; +for other users, B and B are +set to a temporary directory where all files belonging to the clusters are +created. + +If I fails, the tail of the PostgreSQL server log is shown. +Additionally, if B is available, the backtrace from any PostgreSQL +coredump is show. + +=head1 OPTIONS + +=over 4 + +=item B<-a> + +Use all PostgreSQL server versions installed. + +=item B<-v> I + +Use these versions (space-separated list). + +=item B<-c> I + +Extra options to pass to B. + +=item B<-i> I + +Extra initdb options to pass to B. + +=item B<-o> IB<=>I + +Configuration option to set in the C file, passed to +B. + +=item B<-s> + +Launch a shell inside the virtual environment when I fails. + +=item B<-t> + +Install clusters in a temporary directory, even when running as root. + +=item B<-h> + +Show program help. + +=back + +=head1 EXAMPLE + + # pg_virtualenv make check + +=head1 NOTES + +When run with fakeroot(1), B will fall back to the non-root mode +of operation. Running "fakeroot pg_virtualenv" as root will fail, though. + +=head1 ENVIRONMENT + +=over 4 + +=item B=yes + +When non-empty, B will re-exec itself using newpid(1). + +=item B=I + +When non-empty, B will re-exec itself using unshare(1) using +these flags. + +=item B=I + +When set, the value is used for the (single) cluster created. + +=back + +=head1 COMPATIBILITY + +B is set in postgresql-common (>= 219~). + +=head1 SEE ALSO + +initdb(1), pg_createcluster(1). + +=head1 AUTHOR + +Christoph Berg Lmyon@debian.orgE> -- cgit v1.2.3