Olá, Glênio 2010/1/13 Osvaldo Kussama <osvaldo.kuss...@gmail.com>
> 2010/1/13 Glênio Côrtes Himmen <glenio.116...@aparecida.go.gov.br>: > > Traduzindo em miúdos, não vou conseguir a informação que eu quero?! > > > > Claro que vai. > Numa mensagem anterior eu coloquei a sentença SQL utilizando a função > quote_ident [1], veja no manual a sua utilidade. > Apenas acrescentando o que o Osvaldo comentou: Faça o seguinte: SET search_path TO "sch"; SELECT table_name,pg_size_pretty(pg_relation_size(quote_ident(table_name))) AS tamanho FROM information_schema.tables WHERE table_schema=current_schema() ORDER BY 2 DESC; > Tente: > SELECT table_name,pg_size_pretty(pg_relation_size(quote_ident(table_name))) > AS tamanho > FROM information_schema.tables > WHERE table_schema='SCH' > ORDER BY 2 DESC; > > Osvaldo > > [1] > http://www.postgresql.org/docs/current/interactive/functions-string.html > _______________________________________________ > pgbr-geral mailing list > pgbr-geral@listas.postgresql.org.br > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > []s -- JotaComm http://jotacomm.wordpress.com
_______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral