For this test to work, postgres must be correctly configured on your system and accessible to the webserver user id.
"
global errorInfo
html "
If the test failed due to an error like: "pg_connect no such command",
then this indicates either a problem in the configuration (access.conf),
or something more subtle.}
}
\n"
html "
\n"
} else {
html "Bummer. Could not read template1 tuples, result was: [pg_result $r -status]"
}
}] {
html "Too bad. Something is definitely broken. The following traceback should help: \n"
loop i 0 [pg_result $r -numTuples] {
html "[join [pg_result $r -attributes] ] \n"
}
html "[join [pg_result $r -getTuple $i] ] $errorInfo
"
html {