You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Create a distinction between a populated matview and a scannable one.
The intent was that being populated would, long term, be just oneof the conditions which could affect whether a matview wasscannable; being populated should be necessary but not alwayssufficient to scan the relation. Since only CREATE and REFRESHcurrently determine the scannability, names and commentsaccidentally conflated these concepts, leading to confusion.Also add missing locking for the SQL function which allows atest for scannability, and fix a modularity violatiion.Per complaints from Tom Lane, although its not clear that thesewill satisfy his concerns. Hopefully this will at least betterframe the discussion.