Skip to content

documentdb_api.list_databases returns zero sizeOnDisk #121

Open

Description

@AlekSi

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

Activity

  1. self-assigned this
    on Apr 7, 2025
  2. added this to the Backlog milestone on Jan 7, 2026
  3. self-assigned this
    on May 20, 2026
  4. documentdb-triage-tool commented on Jun 3, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  5. documentdb-triage-tool commented on Jun 18, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  6. documentdb-triage-tool commented on Jul 3, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  7. documentdb-triage-tool commented on Jul 18, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  8. documentdb-triage-tool commented on Aug 1, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  9. documentdb-triage-tool commented on Aug 16, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  10. documentdb-triage-tool commented on Aug 30, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  11. documentdb-triage-tool commented on Sep 14, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 15 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  12. documentdb-triage-tool commented on Sep 28, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  13. documentdb-triage-tool commented on Oct 12, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  14. documentdb-triage-tool commented on Oct 28, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 15 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

  15. documentdb-triage-tool commented on Nov 11, 2026

    @documentdb-triage-tool

    👋 @lichoil — this issue has been assigned for 14 days with no activity. Is it still in progress? If you've made progress, please leave a quick update. Otherwise it'll be flagged for re-assignment at the next triage meeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions