On 26-10-2016 10:17, Sebastian Webber wrote: > Curioso do teu problema, eu fiz um teste aqui, veja: > > sebastian=# create table foo (id serial primary key, nome text); > CREATE TABLE > sebastian=# insert into foo (nome) select 'Nome ' || > generate_series(1,1000000); > INSERT 0 1000000 > sebastian=# \dt+ > List of relations > Schema | Name | Type | Owner | Size | Description > --------+------+-------+-----------+-------+------------- > public | foo | table | sebastian | 42 MB | > (1 row) > > > > Até aí, tudo bem, mas quando computo o tamanho do banco, acontece algo > diferente: > > sebastian=# select > pg_size_pretty(pg_database_size(current_database())); > pg_size_pretty > ---------------- > 70 MB > (1 row) >
Isso é normal, porque o metacomando \dt+ do psql [1] retorna o tamanho da tabela (incluindo FSM, VM e TOAST apartir da 9.0), ou seja, não considera índices. Att, [1] http://doxygen.postgresql.org/describe_8c.html#a773ee037ae1c052551ec298504d4a970 -- Fabrízio de Royes Mello Timbira - http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
