pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_stat_reset influence the plan chosen ?
2+ messages / 2 participants
[nested] [flat]

* pg_stat_reset influence the plan chosen ?
@ 2018-09-12 06:36 Mariel Cherkassky <mariel.cherkassky@gmail.com>
  2018-09-12 07:20 ` Re: pg_stat_reset influence the plan chosen ? legrand legrand <legrand_legrand@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Mariel Cherkassky @ 2018-09-12 06:36 UTC (permalink / raw)
  To: pgsql-admin@lists.postgresql.org

Hi,
Does before choosing a plan postgres looks on the pg_stat_all_tables table
? I usually use the select pg_stat_reset() before I run some operation in
order to understand on what tables those operations work and what exactly
they do. I wanted to understand if by reseting the statistics I influence
the plan postgres will use.

Thanks , Mariel.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: pg_stat_reset influence the plan chosen ?
  2018-09-12 06:36 pg_stat_reset influence the plan chosen ? Mariel Cherkassky <mariel.cherkassky@gmail.com>
@ 2018-09-12 07:20 ` legrand legrand <legrand_legrand@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: legrand legrand @ 2018-09-12 07:20 UTC (permalink / raw)
  To: pgsql-admin

Hi,

Plans are calculated using pg_settings and pg_stats / pg_statistic,
Pg_stat_rest() does not have any impact on them.
There is no "dynamic" planning features yet.

Regards
PAscal



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-09-12 07:20 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12 06:36 pg_stat_reset influence the plan chosen ? Mariel Cherkassky <mariel.cherkassky@gmail.com>
2018-09-12 07:20 ` legrand legrand <legrand_legrand@hotmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox