我的Postgresql数据库中只显示了2个表

时间:2015-12-16 10:14:22

标签: database postgresql

我是Postgres的新手,我无法在数据库中列出我的所有表格。

sudo -u postgres psql
psql (9.4.5)
Type "help" for help.

postgres=# \c dbname
You are now connected to database "dbname" as user "postgres".
dbname=# \dt
              List of relations
 Schema |      Name       | Type  |  Owner   
--------+-----------------+-------+----------
 public | spatial_ref_sys | table | postgres
 public | translations    | table | postgres
(2 rows)

但我有更多这些表。我的网络应用程序(使用此数据库)运行良好,但为什么我只看到这两个表格(这些表格也不属于我的数据库,我第一次看到它们。)

我用这些命令创建了我的数据库:

CREATE DATABASE "dbname" WITH ENCODING 'UTF8' LC_CTYPE 'en_US.UTF-8' LC_COLLATE 'en_US.UTF-8' TEMPLATE template0;
sudo -u postgres psql dbname < db-dump.psql

0 个答案:

没有答案