Re: pgbench - add pseudo-random permutation function

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: pgbench - add pseudo-random permutation function
Дата
Msg-id 20200130180346.GA29922@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: pgbench - add pseudo-random permutation function  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Ответы Re: pgbench - add pseudo-random permutation function
Список pgsql-hackers
On 2020-Jan-30, Peter Eisentraut wrote:

> I read the whole thread, I still don't know what this patch is supposed to
> do.  I know what the words in the subject line mean, but I don't know how
> this helps a pgbench user run better benchmarks.  I feel this is also the
> sentiment expressed by others earlier in the thread.  You indicated that
> this functionality makes sense to those who want this functionality, but so
> far only two people, namely the patch author and the reviewer, have
> participated in the discussion on the substance of this patch.  So either
> the feature is extremely niche, or nobody understands it.  I think you ought
> to take about three steps back and explain this in more basic terms, even
> just in email at first so that we can then discuss what to put into the
> documentation.

After re-reading one more time, it dawned on me that the point of this
is similar in spirit to this one:
https://wiki.postgresql.org/wiki/Pseudo_encrypt

The idea seems to be to map the int4 domain into itself, so you can use
a sequence to generate numbers that will not look like a sequence,
allowing the user to hide some properties (such as the generation rate)
that might be useful to an eavesdropper/attacker.  In terms of writing
benchmarks, it seems useful to destroy all locality of access, which
changes the benchmark completely.  (I'm not sure if this is something
benchmark writers really want to have.)

If I'm right, then I agree that the documentation provided with the
patch does a pretty bad job at explaining it, because until now I didn't
at all realize this is what it was.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: table partitioning and access privileges
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Unix-domain socket support on Windows