Im trying to create a SQL file to import my database/schema/tables with PHP.
If I use the PgAdmin, it inserts a meta-command \connect after the CREATE TABLE and this generates an error if I run the SQL with pg_query in PHP.
After read the following questions: PostgreSQL: Create schema in specific database and Postgres Creating Schema in a specific database
I ask: How I can create a new schema, inside specific database, with SQL commands (NOT psql commands)? The specific database is not the default named 'postgres' database, but another created by me.