Re: time-based range partitioning and truncate/delete different timezones

From: Michael Lewis <mlewis(at)entrata(dot)com>
To: Niels Jespersen <NJN(at)dst(dot)dk>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: time-based range partitioning and truncate/delete different timezones
Date: 2021-01-15 18:49:04
Message-ID: CAHOFxGpZTTjRXb-YRg+iEnWttS0zMBO-SoZbNWtqPH-yxtw17g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

What version are you using? How long are you keeping data for? It is
possible to partition by hour or would that exceed the number of
recommended partitions too quickly for your retention time period? Else, I
would partition on date according to the timezone of your data. Selecting
from multiple partitions for the aggregate should be performant enough in
most cases. The truncate / detach type commands may need to be the priority.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Lewis 2021-01-15 18:56:19 Re: migration from postgres to enterprosedb
Previous Message Michael Lewis 2021-01-15 18:28:39 Re: Accounting for between table correlation