我明白了
错误:关系“testdb”不存在
(注意表名称的情况!)来自
SELECT pg_table_size('testDB');
(请注意表名称案例!)尽管如此
test=> \d
List of relations
Schema | Name | Type | Owner
--------+-----------+-------+-------
public | testDB | table | test
这是一个错误吗?混合案例表名称是非法的吗?
你必须引用这个名字
create table "testDB" (/* ... */);
SELECT pg_table_size('"testDB"');