web-dev-qa-db-ja.com

PostgreSQL:データベースを削除しますが、DBはまだあります

私はPostgreSQLを初めて使用し、頭を悩ませようとしています。私はdbとMySQLに精通しています。

PsqlがDjangoを介してプッシュしようとした変更を無視しているように見えるため、作成したデータベースを削除しようとしています。

\lを実行すると、次の応答が返されます。

                                  List of databases
       Name       | Owner  | Encoding |   Collate   |    Ctype    | Access privileges 
------------------+--------+----------+-------------+-------------+-------------------
 postgres         | neurix | UTF8     | en_AU.UTF-8 | en_AU.UTF-8 | 
 test_db          | neurix | UTF8     | en_AU.UTF-8 | en_AU.UTF-8 | 
 template0        | neurix | UTF8     | en_AU.UTF-8 | en_AU.UTF-8 | =c/neurix        +
                  |        |          |             |             | neurix=CTc/neurix
 template1        | neurix | UTF8     | en_AU.UTF-8 | en_AU.UTF-8 | =c/neurix        +
                  |        |          |             |             | neurix=CTc/neurix
 template_postgis | neurix | UTF8     | en_AU.UTF-8 | en_AU.UTF-8 | 
(5 rows)

ここで、データベース「test_db」を次のように削除します。

DROP DATABASE test_db

しかし、後で\lを実行すると、テーブルはまだそこにあり、概要は約のようになります。

27
neurix

;の後にDROP DATABASE test_dbを入力しましたか? PostgreSQLはコマンドへの応答を出力しましたか?

60
Tom Anderson