Re: autoprewarm is fogetting to register a tranche.

2018-01-31 Thread Robert Haas
On Fri, Dec 22, 2017 at 12:13 AM, Kyotaro HORIGUCHI wrote: > The attached one-liner patch is just adding tranche registration > to autprewarm.c. Committed. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company

Re: autoprewarm is fogetting to register a tranche.

2017-12-21 Thread Kyotaro HORIGUCHI
Hello, At Mon, 18 Dec 2017 12:46:02 -0500, Robert Haas wrote in > On Fri, Dec 15, 2017 at 3:32 AM, Kyotaro HORIGUCHI > wrote: > > Hello, I noticed while an investigation

Re: autoprewarm is fogetting to register a tranche.

2017-12-18 Thread Robert Haas
On Fri, Dec 15, 2017 at 3:32 AM, Kyotaro HORIGUCHI wrote: > Hello, I noticed while an investigation that pg_prewarm is > forgetting to register a tranche. Oops. > In passing, I found it hard to register a tranche in > apw_init_shmem() because a process using the

autoprewarm is fogetting to register a tranche.

2017-12-15 Thread Kyotaro HORIGUCHI
Hello, I noticed while an investigation that pg_prewarm is forgetting to register a tranche. Before the second parameter of LWLockRegisterTranche() became char * in 3761fe3, that would lead to a crash for a --enable-dtrace build, but currently it not likely. On the other hand as far as reading a