Search Postgresql Archives

Re: after restore the size of the database is increased

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 15, 2019 at 7:07 PM Adrian Klaver <adrian.klaver@xxxxxxxxxxx> wrote:
> What does \l+ show?

The same as pg_size_pretty:

foo=# \l+
                                                               List of databases
   Name    |  Owner   | Encoding  | Collate | Ctype |   Access
privileges   |  Size   | Tablespace |                Description
-----------+----------+-----------+---------+-------+-----------------------+---------+------------+--------------------------------------------
 bar       | luca     | SQL_ASCII | C       | C     |
     | 2566 MB | pg_default |
 foo       | luca     | SQL_ASCII | C       | C     |
     | 2562 MB | pg_default |


foo=# SELECT pg_size_pretty( pg_database_size( 'foo' ) ) AS foo,
pg_size_pretty( pg_database_size( 'bar' ) ) AS bar;
-[ RECORD 1 ]
foo | 2562 MB
bar | 2566 MB

Luca





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux