pg_sample - Mailing list pgsql-general

From Patrick B
Subject pg_sample
Date
Msg-id CAJNY3is_pe4p5JLg6rXCzbtqTwePjETjXMc2VZ3+WCNwhM4JFA@mail.gmail.com
Whole thread Raw
Responses 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>)
List 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 by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Getting the currently used sequence for a SERIAL column
Next
From: Michael Paquier
Date:
Subject: Re: json rendering without pretty option (compact)