--TEST-- PostgreSQL create db --EXTENSIONS-- pgsql --SKIPIF-- --FILE-- =') && (!($q = @pg_query($db, "SELECT * FROM ".$table_name_92)) || !@pg_num_rows($q))) { pg_query($db, "CREATE TABLE {$table_name_92} (textary text[], jsn json)"); // Create table here } else { echo pg_last_error()."\n"; } // Create view here pg_query($db, "CREATE VIEW {$view_name} AS SELECT * FROM {$table_name}"); pg_close($db); echo "OK"; ?> --CLEAN-- --EXPECT-- OK