File: crash

package info (click to toggle)
pg-crash 0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 88 kB
  • sloc: ansic: 143; makefile: 12; sh: 9
file content (13 lines) | stat: -rwxr-xr-x 325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

export LC_ALL=C.UTF-8

echo "psql -Xc 'SELECT pg_sleep(600)' 2>&1 | grep 'FATAL:  terminating connection due to administrator command'" | \
pg_buildext \
	-o "shared_preload_libraries=pg_crash" \
	-o "superuser_reserved_connections=0" \
	-o "max_wal_senders=0" \
	-o "max_connections=1" \
	virtualenv "$@"