Re: Optional skipping of unchanged relations during ANALYZE? - Mailing list pgsql-hackers

From Corey Huinker
Subject Re: Optional skipping of unchanged relations during ANALYZE?
Date
Msg-id CADkLM=dLGe9qD5XDV8ROBXmcOgVxPYgWGp27TBz3EhdPThundg@mail.gmail.com
Whole thread Raw
In response to Re: Optional skipping of unchanged relations during ANALYZE?  (VASUKI M <vasukianand0119@gmail.com>)
List pgsql-hackers


The suggestion to reuse existing ANALYZE internals, in particular examine_attribute(), makes sense. Leveraging that logic to determine whether analyzable attributes lack statistics should align the implementation more closely with core ANALYZE behavior and avoid re-defining missing-stats rules independently.[Thanks Sami for teaching me this as i am an new contributor:) ]

You'll find some useful code for the syscache lookups in attribute_stats_update() and extended_statistics_update() for determining if attributes and stats objects have matching stats.

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: Document NULL
Next
From: "Zhijie Hou (Fujitsu)"
Date:
Subject: RE: Improve pg_sync_replication_slots() to wait for primary to advance