#NEWLINE# def _check_schema_exists( self , schema ) : #NEWLINE# #INDENT# cmdline = [ self . find_psql ( ) ] #NEWLINE# cmdline . extend ( self . get_psql_options ( ) ) #NEWLINE# cmdline . extend ( [ '-c' , ( 'SET search_path=%s' % cmdline ) ] ) #NEWLINE# p = self . popen ( cmdline , stdin = PIPE , stdout = PIPE , stderr = PIPE ) #NEWLINE# p . communicate ( ) #NEWLINE# if p . returncode : #NEWLINE# #INDENT# raise PgxnClientException ( ( 'schema %s does not exist' % schema ) )