Re: Clarification needed for comment in storage/file/fd.c

2018-03-15 Thread Michael Paquier
On Thu, Mar 15, 2018 at 11:22:31AM +, samuel cherukutty wrote: > It states that it behaves as native functions with the handle > registered to the current subtransaction. > If it is so, why is it intended for short operations? > Will it work if I open a file at the start of the transaction and

Clarification needed for comment in storage/file/fd.c

2018-03-15 Thread samuel cherukutty
Hi,       I came across this comment in storage/file/fd.c while I was trying to write an FDW. " AllocateFile, AllocateDir, OpenPipeStream and OpenTransientFile arewrappers around fopen(3), opendir(3), popen(3) and open(2), respectively.They behave like the corresponding native functions, except