Re: BUG #17288: PSQL bug with COPY command (Windows)
| От | Dmitry Koval |
|---|---|
| Тема | Re: BUG #17288: PSQL bug with COPY command (Windows) |
| Дата | |
| Msg-id | 9caa0612-19e5-f860-4b97-908a1c721233@postgrespro.ru обсуждение исходный текст |
| Ответ на | Re: BUG #17288: PSQL bug with COPY command (Windows) (Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>) |
| Ответы |
Re: BUG #17288: PSQL bug with COPY command (Windows)
|
| Список | 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 по дате отправления: