Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-16686

Simplify get_database_size() SQL query for PostgreSQL

    XMLWordPrintable

    Details

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: