Re: BUG #17288: PSQL bug with COPY command (Windows) - Mailing list pgsql-bugs

From Dmitry Koval
Subject Re: BUG #17288: PSQL bug with COPY command (Windows)
Date
Msg-id 9caa0612-19e5-f860-4b97-908a1c721233@postgrespro.ru
Whole thread Raw
In response to Re: BUG #17288: PSQL bug with COPY command (Windows)  (Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>)
Responses Re: BUG #17288: PSQL bug with COPY command (Windows)
List pgsql-bugs
 >We can check for redirection without calling
 >GetFileInformationByHandle(), please consider the attached patch.

There are doubts:

1) we always use system function (GetFinalPathNameByHandleA or
GetFileInformationByHandle); sometimes we use these two calls
GetFinalPathNameByHandleA + GetFileInformationByHandle
together (in freopen() case);

2) function GetFinalPathNameByHandleA is slower than
GetFileInformationByHandle (2-4 times).
Might be exist a cheaper way than GetFinalPathNameByHandleA?

I don't understand why this way better than using one call
GetFileInformationByHandle...

With best regards,
Dmitry Koval.



pgsql-bugs by date:

Previous
From: reiner peterke
Date:
Subject: Re: BUG #17292: view definition containing multiple joins on partitioned table returns invalid explain plan
Next
From: Juan José Santamaría Flecha
Date:
Subject: Re: BUG #17288: PSQL bug with COPY command (Windows)