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 12:27:34 |
Message-ID: | e68b6e05-ee89-26ef-b25d-04bc0ae45396@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
>GetFinalPathNameByHandleA() is slower when there is redirection, when
>there is no redirection it's similar or faster than
>GetFileInformationByHandle(), and that should be the most common case.
I tested 2 cases:
1) "stdout" is not redirected.
In this case GetFinalPathNameByHandleA() returns error and
GetFileInformationByHandle() returns error.
Simple test in attachment.
---
Result:
GetFileInformationByHandle: 7, GetFinalPathNameByHandleA: 16
2) "stdout" redirected (need to uncomment 2 lines in test).
Both function works without error.
---
Result (see file "1.txt"):
GetFileInformationByHandle: 34, GetFinalPathNameByHandleA: 120
The difference is not very big, but it is.
With best regards,
Dmitry.
Attachment | Content-Type | Size |
---|---|---|
test2.c | text/plain | 676 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-11-19 14:56:31 | Re: conchuela timeouts since 2021-10-09 system upgrade |
Previous Message | Juan José Santamaría Flecha | 2021-11-19 11:44:14 | Re: BUG #17288: PSQL bug with COPY command (Windows) |