Skip to content

Instantly share code, notes, and snippets.

@b4tman
Last active March 18, 2020 10:28
Show Gist options
  • Save b4tman/0eff145d010b91ffde46a650fcb6523e to your computer and use it in GitHub Desktop.
Save b4tman/0eff145d010b91ffde46a650fcb6523e to your computer and use it in GitHub Desktop.
SELECT relname, pg_size_pretty(round(relpages*8*1024, 0)) as size FROM pg_class ORDER BY relpages DESC LIMIT 10
LOAD 'online_analyze';
SET "onlyne_analyze.enable" TO 'on';
SET "onlyne_analyze.table_type" = 'temporary';
SET "online_analyze.verbose" = 'off';
CREATE EXTENSION pg_prewarm;
SELECT pg_prewarm('config');
SELECT pg_prewarm('dbschema');
SELECT pg_prewarm('files');
SELECT pg_prewarm('params');
SELECT pg_prewarm('v8users');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment