[HACKERS] Hang issue when COPY to/from an unopened FIFO

2016-07-14 Thread Kenan Yao
Hi devs, I came across a hang issue when COPY to a FIFO file, because the FIFO is not opened for read on the other end. The backtrace from master branch is like: #0 0x00332ccc6c30 in __open_nocancel () from /lib64/libc.so.6 #1 0x00332cc6b693 in __GI__IO_file_open () from

Re: [HACKERS] A question regarding LWLock in ProcSleep

2015-12-21 Thread Kenan Yao
necessary to acquire the LWLock? Thanks, Kenan On Fri, Dec 18, 2015 at 10:25 PM, Amit Kapila <amit.kapil...@gmail.com> wrote: > On Thu, Dec 17, 2015 at 1:51 PM, Kenan Yao <k...@pivotal.io> wrote: > >> Hi there, >> >> In function ProcSleep, after the process ha

Re: [HACKERS] A question regarding LWLock in ProcSleep

2015-12-21 Thread Kenan Yao
+Heikki, Hi Heikki, Could you please help provide a case to elaborate why we need the LWLock here? or could you please tell me to whom should I ask this question? Thanks, Kenan On Tue, Dec 22, 2015 at 11:41 AM, Kenan Yao <k...@pivotal.io> wrote: > Hi Amit, > > Thanks for the

[HACKERS] A question regarding LWLock in ProcSleep

2015-12-17 Thread Kenan Yao
Hi there, In function ProcSleep, after the process has been waken up, either with lock granted or deadlock detected, it would re-acquire the lock table's partition LWLock. The code episode is here: /* * Re-acquire the lock table's partition lock. We have to do this to hold * off