Here's a patch. I kept the location in the CTE bit, because it's betterthan nothing. No location hint is possible for the COPY one, as far asI can see.
-- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/