Check for interrupts in bf and xdes crypt()

Поиск
Список
Период
Сортировка
От Andreas Karlsson
Тема Check for interrupts in bf and xdes crypt()
Дата
Msg-id 566FD0DD.4020303@proxel.se
обсуждение исходный текст
Ответы Re: Check for interrupts in bf and xdes crypt()
Список pgsql-hackers
Hi,

Here is a patch which makes it possible to cancel a query which runs the
crypt() function with the bf or xdes hashing algorithm, e.g.
crypt('foo', gen_salt('bf', 13)). The md5 algorithm does not run for
multiple rounds so there is no reason to patch it.

I noticed this problem when I accidentally picked a too high n for the
number of hash rounds.

I have added a call to CHECK_FOR_INTERRUPTS() after every round, and I
could not measure any performance hit from this.

Andreas

Вложения

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Unused(?) field Form_pg_sequence.sequence_name, not updated by seq rename
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench stats per script & other stuff