Re: query doesn't always follow 'correct' path..
От | Bert |
---|---|
Тема | Re: query doesn't always follow 'correct' path.. |
Дата | |
Msg-id | CAFCtE1=2C3-z020=1Y-Cf3GJEmex8hp3Lg3sqJSzBTRA72AwRg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: query doesn't always follow 'correct' path.. (Frank Lanitz <frank@frank.uvena.de>) |
Ответы |
Re: query doesn't always follow 'correct' path..
|
Список | pgsql-sql |
Hello,
yes, the tables are vacuumed every day with the following command: vacuum analyze schema.table.
The last statistics were collected yesterday evening. I collected statistics about the statistics, and I found the following:yes, the tables are vacuumed every day with the following command: vacuum analyze schema.table.
table_name; starttime; runtime
"st_itemseat";"2013-02-17 23:48:42";"00:01:02"
"st_itemseat_45";"2013-02-17 23:35:15";"00:00:08"
"st_itemzone";"2013-02-17 23:35:33";"00:00:01"
st_itemseat_45 is a child-partition of st_itemseat.
Total query runtime: 12025 ms.
20599 rows retrieved.
wkr,
On Mon, Feb 18, 2013 at 11:51 AM, Frank Lanitz <frank@frank.uvena.de> wrote:
Am 18.02.2013 10:43, schrieb Bert:> Does anyone has an idea what triggers this bad plan, and how I can fix it?Looks a bit like wrong statistics. Are the statistiks for your tables
correct?
Cheers,
Frank
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
--
Bert Desmet
0477/305361
В списке pgsql-sql по дате отправления: