Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-16686

Simplify get_database_size() SQL query for PostgreSQL

XMLWordPrintable

      Currently it makes 3 queries to get database size:

      • Check if function pg_database_size()
        exists
      • Get the database OID
      • Finally, get database size

      It could be rewritten to use the function pg_database_size() directly, which is available since PostgreSQL 8.1, and phpBB according to the user guide requires 8.3 or greater.

            Marc Marc
            AbaddonOrmuz AbaddonOrmuz [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: