I think it's already true that the previous lines of the query buffer are stashed somewhere that psql knows about,
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных