Is there any way to write DROP DATABASE [ IF EXISTS ] name from php script? Seems that I need something similar to mysql_drop_db just for Postrge.
How my $connStr in $conn = pg_connect($connStr) must look like to have rights to do this command? What db I must be connected?
DROP DATABASEis a query so you can usepg_query($conn, 'DROP DATABASE')