in file: /src/backend/command/copy.c I found that it can happen that there is nothing in the buffer (fe_msgbuf) to be written to a file and there is only a check of count (which in this case would be 0):
Чтобы сделать работу с сайтом удобнее, мы используем cookie и аналитический сервис «Яндекс.Метрика». Продолжая пользоваться сайтом, вы соглашаетесь с их использованием.