Re: why does reindex invalidate relcache without modifying system tables

2022-01-03 Thread wenjing zeng
> 2021年12月27日 23:54,Tom Lane 写道: > > wenjing zeng writes: >> I found that in the index_update_stats function, i.e. the CREATE >> INDEX/REINDEX/Truncate INDEX process, >> relchche is invalidated whether the index information is updated. I want to >> know why you're did this > > Did you read

Re: why does reindex invalidate relcache without modifying system tables

2021-12-27 Thread Tom Lane
wenjing zeng writes: > I found that in the index_update_stats function, i.e. the CREATE > INDEX/REINDEX/Truncate INDEX process, > relchche is invalidated whether the index information is updated. I want to > know why you're did this Did you read the function's header comment? It says * NOTE:

why does reindex invalidate relcache without modifying system tables

2021-12-27 Thread wenjing zeng
Hi Tom I would like to ask you about the details of index build. I found that in the index_update_stats function, i.e. the CREATE INDEX/REINDEX/Truncate INDEX process, relchche is invalidated whether the index information is updated. I want to know why you're did this The code is: