pg_sample

Поиск
Список
Период
Сортировка
От Patrick B
Тема pg_sample
Дата
Msg-id CAJNY3is_pe4p5JLg6rXCzbtqTwePjETjXMc2VZ3+WCNwhM4JFA@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_sample  (Michael Paquier <michael.paquier@gmail.com>)
Re: pg_sample  ("Greg Sabino Mullane" <greg@turnstep.com>)
Re: pg_sample  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Re: pg_sample  (naveen12 <naveen@paymonk.com>)
Список pgsql-general
Hi guys,

I got a very big database, that I need to export (dump) into a new test server.

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.

Do you guys have any idea how could I do this?
Thanks
Patrick

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: Getting the currently used sequence for a SERIAL column
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: json rendering without pretty option (compact)