Re[4]: Postgresql planning time too high
"Sterpu Victor" <[email protected]> Fri, 22 Nov 2019 12:44:27 +0000
| Newsgroups | gmane.comp.db.postgresql.performance |
|---|---|
| Message-ID | <em26503cdb-24f1-4d95-bb80-63f05b7362f0@victor-pc> |
I'm sorry, I messed up between a lot of queries ..... there is no difference after running "VACUUM ANALYZE". I guess this was to be expected as the database was just restored from backup. ------ Original Message ------ From: "Fırat Güleç" <[email protected]> To: "Sterpu Victor" <[email protected]> Cc: [email protected] Sent: 2019-11-22 2:05:44 PM Subject: RE: Re[2]: Postgresql planning time too high >Could you run VACCUM ANALYZE. > > > >From: Sterpu Victor <[email protected]> >Sent: Friday, November 22, 2019 2:46 PM >To: Fırat Güleç <[email protected]> >Cc:[email protected] >Subject: Re[2]: Postgresql planning time too high > > > >I did runned "VACCUM FULL" followed by "VACUUM" but no difference. > > > >------ Original Message ------ > >From: "Fırat Güleç" <[email protected]> > >To: "Sterpu Victor" <[email protected]> > >Cc: [email protected] > >Sent: 2019-11-22 1:35:15 PM > >Subject: RE: Postgresql planning time too high > > > >>Hello Sterpu, >> >> >> >>First, please run vaccum for your Postgresql DB. >> >> >> >>No rows returned from your query. Could you double check your query >>criteria. >> >> >> >>After that could you send explain analyze again . >> >> >> >>Regards, >> >> >> >>FIRAT GÜLEÇ >>Infrastructure & Database Operations Manager >>[email protected] >> >> >> >>M: 0 532 210 57 18 >>İnönü Mh. Mimar Sinan Cd. No:3 Güzeller Org.San.Bölg. GEBZE / KOCAELİ >> >> >> >> >> >> >> >> >>From: Sterpu Victor <[email protected]> >>Sent: Friday, November 22, 2019 2:21 PM >>To:[email protected] >>Subject: Postgresql planning time too high >> >> >> >>Hello >> >> >> >>I'm on a PostgreSQL 12.1 and I just restored a database from a backup. >> >>When I run a query I get a big execution time: 5.482 ms >> >>After running EXPLAIN ANALYZE I can see that the "Planning Time: >>5165.742 ms" and the "Execution Time: 6.244 ms". >> >>The database is new(no need to vacuum) and i'm the only one connected >>to it. I use a single partition on the harddrive. >> >>I also tried this on a postgresql 9.5 and the result was the same. >> >>I'm not sure what to do to improve this situation. >> >>The query and the explain is attached. >> >> >> >>Thank you >> >> >>
image001.png
(image/png, 10.3 KB) - not displayed