Re: pg_upgrade and statistics
От
Kevin Grittner
Тема
Re: pg_upgrade and statistics
Дата
Msg-id
4F5F4942020000250004622E@gw.wicourts.gov
Ответ на
Re: pg_upgrade and statistics (Greg Stark)
Список
Дерево обсуждения
pg_upgrade and statistics Daniel Farina <daniel@heroku.com>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Daniel Farina <daniel@heroku.com>
Re: pg_upgrade and statistics Daniel Farina <daniel@heroku.com>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Alvaro Herrera <alvherre@commandprompt.com>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Alvaro Herrera <alvherre@commandprompt.com>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Greg Stark <stark@mit.edu>
Re: pg_upgrade and statistics Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade and statistics Peter Eisentraut <peter_e@gmx.net>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Peter Eisentraut <peter_e@gmx.net>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Peter Eisentraut <peter_e@gmx.net>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Andrew Dunstan <andrew@dunslane.net>
Re: pg_upgrade and statistics Peter Eisentraut <peter_e@gmx.net>
Re: pg_upgrade and statistics Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade and statistics Greg Stark <stark@mit.edu>
Re: pg_upgrade and statistics Alvaro Herrera <alvherre@commandprompt.com>
Re: pg_upgrade and statistics Ants Aasma <ants@cybertec.at>
Re: pg_upgrade and statistics Euler Taveira <euler@timbira.com>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics Robert Haas <robertmhaas@gmail.com>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Andrew Dunstan <andrew@dunslane.net>
Re: pg_upgrade and statistics Daniel Farina <daniel@heroku.com>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: pg_upgrade and statistics Greg Stark <stark@mit.edu>
Re: pg_upgrade and statistics Bruce Momjian <bruce@momjian.us>
Re: pg_upgrade and statistics "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Greg Stark wrote: > Daniel Farina wrote: >> You probably are going to ask: "why not just run ANALYZE and be >> done with it?" > > Uhm yes. If analyze takes a long time then something is broken. > It's only reading a sample which should be pretty much a fixed > number of pages per table. It shouldn't take much longer on your > large database than on your smaller databases. On a small database: cc=# analyze "CaseHist"; ANALYZE Time: 255.107 ms cc=# select relpages, reltuples from pg_class where relname = 'CaseHist';relpages | reltuples ----------+----------- 1264 | 94426 (1 row) Same table on a much larger database (and much more powerful hardware): cir=# analyze "CaseHist"; ANALYZE Time: 143450.467 ms cir=# select relpages, reltuples from pg_class where relname = 'CaseHist';relpages | reltuples ----------+------------- 3588659 | 2.12391e+08 (1 row) Either way, there are about 500 tables in the database. -Kevin
В списке pgsql-hackers по дате отправления