Project

General

Profile

« Previous | Next » 

Revision 12763

bugfix: lib/sh/db.sh: pg_schema_exists(): need to ignore benign error exit status from the "cannot create temporary relation in non-temporary schema" error

View differences:

db.sh
366 366
{
367 367
	echo_func; : "${schema:?}"; mk_schema_esc
368 368
	prep_try; pattern='cannot create temporary relation in non-temporary schema' \
369
stderr_matches psql <<<"CREATE TEMP TABLE $schema_esc.t ()"
369
ignore_e=3 stderr_matches psql <<<"CREATE TEMP TABLE $schema_esc.t ()"
370 370
}
371 371

  
372 372
pg_require_schema() # usage: schema=... pg_require_schema

Also available in: Unified diff