Re: psql history vs. dearmor (pgcrypto)

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: psql history vs. dearmor (pgcrypto)
Дата
Msg-id CA+TgmoZWe8Q28ndv7W=kCuYae=_wiCoGvfYEKvpRKj-1YXmjnw@mail.gmail.com
обсуждение исходный текст
Ответ на psql history vs. dearmor (pgcrypto)  (Tomas Vondra <tv@fuzzy.cz>)
Список pgsql-hackers
2011/11/13 Tomas Vondra <tv@fuzzy.cz>:
> but recalling it from the query buffer results in
>
>  ERROR:  Corrupt ascii-armor
>
> I've noticed this on 9.1 but 9.2devel behaves exactly the same. I'm
> using 64-bit Linux with UTF8, nothing special.

It looks like the problem is that the original has a blank line after
the line that says "Version: GnuPG v2.0.17 (GNU/Linux)", but when you
recall it from the query buffer, that extra blank line gets elided.

The attached patch fixes it for me.  I'm a little worried it might
cause a problem in some case I'm not thinking about, but I can't think
of any such case right this minute.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Smith
Дата:
Сообщение: CommitFest 2011-11 starting soon
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: Cause of intermittent rangetypes regression test failures