Revision 13338
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/lib/sh/db.sh | ||
---|---|---|
402 | 402 |
{ |
403 | 403 |
echo_func; : "${schema:?}"; mk_schema_esc |
404 | 404 |
pattern='cannot create temporary relation in non-temporary schema' \ |
405 |
ignore_e=3 log++ stderr_matches psql <<<"CREATE TEMP TABLE $schema_esc.t ()"
|
|
405 |
ignore_e=3 stderr_matches psql <<<"CREATE TEMP TABLE $schema_esc.t ()" |
|
406 | 406 |
} |
407 | 407 |
|
408 | 408 |
pg_require_schema() # usage: schema=... pg_require_schema |
Also available in: Unified diff
fix: lib/sh/db.sh: pg_schema_exists(): don't use log++ because it hides the command that produces the benign error