Re: [HACKERS] File system operations.

2016-09-23 Thread Craig Ringer
On 22 September 2016 at 20:02, Yury Zhuravlev wrote: > On четверг, 15 сентября 2016 г. 19:09:16 MSK, Tom Lane wrote: >> >> Robert Haas writes: >>> >>> On Thu, Sep 15, 2016 at 11:01 AM, Anastasia Lubennikova >>>

Re: [HACKERS] File system operations.

2016-09-22 Thread Yury Zhuravlev
On четверг, 15 сентября 2016 г. 19:09:16 MSK, Tom Lane wrote: Robert Haas writes: On Thu, Sep 15, 2016 at 11:01 AM, Anastasia Lubennikova wrote: What do you think about moving stuff from pg_upgrade/file.c to storage/file/ to allow reuse of

Re: [HACKERS] File system operations.

2016-09-15 Thread Tom Lane
Robert Haas writes: > On Thu, Sep 15, 2016 at 11:01 AM, Anastasia Lubennikova > wrote: >> What do you think about moving stuff from pg_upgrade/file.c to storage/file/ >> to allow reuse of this code? I think it'll be really helpful for

Re: [HACKERS] File system operations.

2016-09-15 Thread Robert Haas
On Thu, Sep 15, 2016 at 11:01 AM, Anastasia Lubennikova wrote: > What do you think about moving stuff from pg_upgrade/file.c to storage/file/ > to allow reuse of this code? I think it'll be really helpful for developers > of contrib modules > like backup managers.

[HACKERS] File system operations.

2016-09-15 Thread Anastasia Lubennikova
Hi, hackers! Do we have any standard set of functions to operate with files? I mean link(), copy(), rename(), unlink(), ftruncate() and so on. Mostly I worry about the first two since they have different implementation on Windows. I found a couple of functions in