Open
Description
Describe the bug
documentdb_api.list_databases
returns zero sizeOnDisk
.
Reproduction Steps
postgres=# SET documentdb_core.bsonUseEJson = on;
SET
postgres=# SELECT * FROM version();
version
---------------------------------------------------------------------------------------------------------------------
PostgreSQL 17.4 (Debian 17.4-1.pgdg120+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
(1 row)
postgres=# SELECT * FROM documentdb_api.binary_extended_version();
binary_extended_version
-----------------------------------------------
0.102.0 gitref: 2gb-fix sha:22ac220 buildId:0
(1 row)
postgres=# SELECT * FROM documentdb_api.list_databases('{"listDatabases":1}');
list_databases
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
{ "databases" : [ { "name" : "benchmarking", "sizeOnDisk" : { "$numberInt" : "0" }, "empty" : false } ], "totalSize" : { "$numberInt" : "1999334547" }, "ok" : { "$numberDouble" : "1.0" } }
(1 row)
Expected behavior
sizeOnDisk
of specific database should be non-zero when totalSize
is non-zero.
Actual behavior
sizeOnDisk
is zero.
Additional context
N/A