Revision 13339
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/db.sh | ||
---|---|---|
400 | 400 |
|
401 | 401 |
pg_schema_exists() # usage: schema=... pg_schema_exists |
402 | 402 |
{ |
403 |
echo_func; : "${schema:?}"; mk_schema_esc |
|
403 |
log-- echo_func; : "${schema:?}"; mk_schema_esc
|
|
404 | 404 |
pattern='cannot create temporary relation in non-temporary schema' \ |
405 | 405 |
ignore_e=3 stderr_matches psql <<<"CREATE TEMP TABLE $schema_esc.t ()" |
406 | 406 |
} |
Also available in: Unified diff
fix: lib/sh/db.sh: pg_schema_exists(): display the function name so it's clear which function is running the psql commands