Project

General

Profile

« Previous | Next » 

Revision 11860

bugfix: lib/sh/local.sh: public_schema_exists(): can no longer use psql_script_vegbien for this, because using `SET search_path` (called by psql_script_vegbien) with a schema that does not exist no longer produces an error. instead, use new pg_schema_exists(), which uses a different command that does produce an error if the schema does not exist.

View differences:

lib/sh/local.sh
82 82
	)|psql__db_sh "$@"
83 83
}
84 84

  
85
public_schema_exists() { psql_script_vegbien </dev/null 2>/dev/null; }
85
public_schema_exists() { echo_func; schema=public pg_schema_exists; }
86 86

  
87 87
pg_dump_local() { echo_func; use_local; pg_dump "$@"; }
88 88

  

Also available in: Unified diff