From: | Vik Fearing <vik(at)2ndquadrant(dot)fr> |
---|---|
To: | Tom Smith <tomsmith1989sk(at)gmail(dot)com> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: TABLESAMPLE usage |
Date: | 2016-01-25 10:21:05 |
Message-ID: | 56A5F711.2010803@2ndquadrant.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 01/25/2016 09:55 AM, Tom Smith wrote:
> Thanks, the solution would work for fixed interval timestamp.
> But the data I am dealing with has irregular timestamp so can not be
> generated with exact steps.
>
> I would consider this a special case/method of random sampling, evenly
> distributed sampling according to the defined timestamp index.
You could probably create your own sampling method to do what you want.
See contrib modules tsm_system_rows and tsm_system_time for guidance.
http://www.postgresql.org/docs/current/static/tsm-system-rows.html
http://www.postgresql.org/docs/current/static/tsm-system-time.html
--
Vik Fearing +33 6 46 75 15 36
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
From | Date | Subject | |
---|---|---|---|
Next Message | Raymond O'Donnell | 2016-01-25 10:56:01 | Re: Possible to dump/load a database from within psql? |
Previous Message | Brian Cardarella | 2016-01-25 10:16:23 | Possible to dump/load a database from within psql? |