Re: pg_sample

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: pg_sample
Дата
Msg-id 6e14a16a-5069-cfd4-bd1c-fcaea167a064@aklaver.com
обсуждение исходный текст
Ответ на Re: pg_sample  (Patrick B <patrickbakerbr@gmail.com>)
Ответы Re: pg_sample  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On 10/18/2016 06:30 PM, Patrick B wrote:
>
>
> 2016-10-19 13:39 GMT+13:00 Michael Paquier <michael.paquier@gmail.com
> <mailto:michael.paquier@gmail.com>>:
>
>     On Wed, Oct 19, 2016 at 9:24 AM, Patrick B <patrickbakerbr@gmail.com
>     <mailto:patrickbakerbr@gmail.com>> wrote:
>     > However, this new database test server doesn't need to have all the data. I
>     > would like to have only the first 100 rows(example) of each table in my
>     > database.
>     >
>     > I'm using pg_sample to do that, but unfortunately it doesn't work well.
>     > It doesn't get the first 100 rows. It gets random 100 rows.
>
>     Why aren't 100 random rows enough to fulfill what you are looking for?
>     What you are trying here is to test the server with some sample data,
>     no? In this case, having the first 100 rows, or a set of random ones
>     should not matter much (never tried pg_sample to be honest).
>     --
>     Michael
>
>
>
> Actually it does matter because there is some essential data that has to
> be in there so the code can work.

Well random does not know essential, it is after all random. If you want
to test specific cases then you will need to build appropriate data sets.


--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Patrick B
Дата:
Сообщение: Re: pg_sample
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: pg_sample