Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Pervasive Control Center v11。如何找到整个数据库的大小和表的数量?
以下导致错误:'表达式错误'
SELECT pg_size_pretty( pg_database_size('RECORDS'))
据我所知,无法通过 SQL 语句获取 Pervasive PSQL 数据库的数据库大小。您可以查看磁盘上的实际文件以查看大小。您可以通过执行以下语句来获取表的计数:
select count(*) from x$file
此计数将包括系统表 (X$XXXX)。
这些pg_函数不是 Pervasive PSQL 函数,而是 PostgreSQL 函数,不适用于 Pervasive / Actian 数据库。
pg_