From: | Dmitry Koval <d(dot)koval(at)postgrespro(dot)ru> |
---|---|
To: | Juan José Santamaría Flecha <juanjo(dot)santamaria(at)gmail(dot)com> |
Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #17288: PSQL bug with COPY command (Windows) |
Date: | 2021-11-19 10:45:10 |
Message-ID: | 9caa0612-19e5-f860-4b97-908a1c721233@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Juan José Santamaría Flecha | 2021-11-19 11:44:14 | Re: BUG #17288: PSQL bug with COPY command (Windows) |
Previous Message | reiner peterke | 2021-11-19 10:17:27 | Re: BUG #17292: view definition containing multiple joins on partitioned table returns invalid explain plan |