Skip to content

Instantly share code, notes, and snippets.

@rdeavila
Created February 28, 2014 13:42
Show Gist options
  • Save rdeavila/9271316 to your computer and use it in GitHub Desktop.
Save rdeavila/9271316 to your computer and use it in GitHub Desktop.
PostgreSQL: Lista de todas as tabelas, ordenada por nro. de registros.
-- Usa as estatísticas do PostgreSQL para a contagem.
-- Para números mais precisos, execute
-- VACUUM ANALYZE
-- antes de iniciar.
SELECT
relname,
n_live_tup
FROM
pg_stat_user_tables
ORDER BY
n_live_tup DESC;
@alex34658
Copy link

Como fazer uma tabela com psycopg2

@laurianops
Copy link

Como fazer uma tabela com psycopg2

Voce se refere criar a tabela em alguma linguagem tipo o "Python" usando o plugin psycopg2 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment