######################################################################## # Common code for PostgreSQL-specific tests ######################################################################## set -eu if [ -z "${SBTEST_PGSQL_ARGS:-}" ] then exit 80 fi # Emulate "\d+" output since it is not portable across PostgreSQL major versions function db_show_table() { if ! psql -c "\d+ $1" sbtest > /dev/null then return fi echo " Table \"public.$1\"" psql -q sbtest < 0 EOF echo "Indexes:" psql -qt sbtest <