Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-08 Thread Kyotaro HORIGUCHI
At Mon, 6 Mar 2017 19:32:25 +0530, Amit Kapila wrote in

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-06 Thread Amit Kapila
On Mon, Mar 6, 2017 at 1:37 PM, Kyotaro HORIGUCHI wrote: > Ok, I think I understand the complete picture. > > At Mon, 06 Mar 2017 15:58:56 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI > wrote in >

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-06 Thread Kyotaro HORIGUCHI
By the way, At Mon, 06 Mar 2017 17:07:55 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI wrote in <20170306.170755.68410634.horiguchi.kyot...@lab.ntt.co.jp> > Ok, I think I understand the complete picture. > > At Mon, 06 Mar 2017 15:58:56 +0900 (Tokyo Standard

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-06 Thread Kyotaro HORIGUCHI
Ok, I think I understand the complete picture. At Mon, 06 Mar 2017 15:58:56 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI wrote in <20170306.155856.198084190.horiguchi.kyot...@lab.ntt.co.jp> > > I can guess two ways to fix this. One is change the definition of

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-05 Thread Kyotaro HORIGUCHI
At Mon, 06 Mar 2017 15:44:52 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI wrote in <20170306.154452.254472341.horiguchi.kyot...@lab.ntt.co.jp> > Hello, > > At Sat, 4 Mar 2017 10:07:50 +0530, Amit Kapila > wrote in

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-05 Thread Kyotaro HORIGUCHI
Hello, At Sat, 4 Mar 2017 10:07:50 +0530, Amit Kapila wrote in > On Fri, Mar 3, 2017 at 3:49 PM, Kyotaro HORIGUCHI > wrote: > >> You can read about usage of LWLocks in

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-03 Thread Amit Kapila
On Fri, Mar 3, 2017 at 3:49 PM, Kyotaro HORIGUCHI wrote: >> You can read about usage of LWLocks in extensions from below location: >> https://www.postgresql.org/docs/devel/static/xfunc-c.html#idp86986416 > > Thank you for the pointer. I understand that the

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-03 Thread Kyotaro HORIGUCHI
> You can read about usage of LWLocks in extensions from below location: > https://www.postgresql.org/docs/devel/static/xfunc-c.html#idp86986416 Thank you for the pointer. I understand that the document describes the only correct way to use LWLock in extensions and using LWLockRegisterTranche

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-03 Thread Amit Kapila
On Fri, Mar 3, 2017 at 1:43 PM, Kyotaro HORIGUCHI wrote: > Hello, some of my collegues found that orafce crashes with > postgresql compliled with dtrace. > > === The cause > > The immediate cause was I think that it just did > LWLockNewTrancheId and forget to do

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-03 Thread Kyotaro HORIGUCHI
I should be very tired. This is the last mail today. At Fri, 03 Mar 2017 17:26:27 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI wrote in <20170303.172627.225604431.horiguchi.kyot...@lab.ntt.co.jp> > > > Hello, some of my collegues found that orafce crashes

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-03 Thread Kyotaro HORIGUCHI
Sorry for frequent mails.. At Fri, 03 Mar 2017 17:21:21 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI wrote in <20170303.172121.140674354.horiguchi.kyot...@lab.ntt.co.jp> > At Fri, 03 Mar 2017 17:13:42 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI >

Re: [HACKERS] [BUG FIX] Removing NamedLWLockTrancheArray

2017-03-03 Thread Kyotaro HORIGUCHI
At Fri, 03 Mar 2017 17:13:42 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI wrote in <20170303.171342.134582021.horiguchi.kyot...@lab.ntt.co.jp> > Hello, some of my collegues found that orafce crashes with > postgresql compliled with dtrace. > > === The cause >