Re: [HACKERS] large object regression tests
От | Bort, Paul |
---|---|
Тема | Re: [HACKERS] large object regression tests |
Дата | |
Msg-id | DB106B1B5B8F734B8FF3E155A3A556C20548CBF8@clemail1.tmwsystems.com обсуждение исходный текст |
Ответ на | Re: [HACKERS] large object regression tests (Jeremy Drake <pgsql@jdrake.com>) |
Список | pgsql-patches |
Jeremy Drake wrote: > > I am open to suggestions. I saw one suggestion that I use an > image of an elephant, but I suspect that was tongue-in-cheek. > I am not very fond of the idea of generating repetitious > data, as I think it would be more difficult to determine > whether or not the loseek/tell functions put me in the right > place in the middle of the file. Perhaps if there was a way > to generate deterministic pseudo-random data, that would work > (has to be deterministic so the diffs of the output come out > right). Anyone have a good example of seeding a random > number generator and generating a bunch of bytea which is > deterministic cross-platform? > How about just using a mathmatical series, like Fibonacci? You can make the file as big as you want from a trivial generator. If you store it as space-separated ASCII ( 1 1 2 3 5 8 13 21 34 ... ), it should be platform independent and you can compare any range of offsets that suits. Regards, Paul Bort
В списке pgsql-patches по дате отправления: