Here's a patch. I kept the location in the CTE bit, because it's better than nothing. No location hint is possible for the COPY one, as far as I can see. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных