Re: [HACKERS] May cause infinite loop when initializing rel-cache contains partitioned table

2017-05-09 Thread Robert Haas
On Mon, May 8, 2017 at 5:07 AM, Amit Langote wrote: > Thanks for bringing it to the notice. The above code should follow what's > done for other fields that are initialized by > RelationCacheInitializePhase3(). Although, since none of the entries in > the relcache

Re: [HACKERS] May cause infinite loop when initializing rel-cache contains partitioned table

2017-05-08 Thread Amit Langote
Hi, On 2017/05/05 17:26, 甄明洋 wrote: > The function of initializing rel-cache is RelationCacheInitializePhase3 and > in src/backend/utils/cache/relcache.c file. > When initializing the partition description information, we forget to check > if partition key or descriptor is NULL. > Therefore,

[HACKERS] May cause infinite loop when initializing rel-cache contains partitioned table

2017-05-05 Thread 甄明洋
The function of initializing rel-cache is RelationCacheInitializePhase3 and in src/backend/utils/cache/relcache.c file. When initializing the partition description information, we forget to check if partition key or descriptor is NULL. Therefore, after the loop restarts, the partition