table partition problem

From: Hung Phan <hungphan227(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-general(at)postgresql(dot)org>
Subject: table partition problem
Date: 2017-10-07 16:57:47
Message-ID: CANHVDh0B=W7s9eV-3FjyU2ZegmhMLc21i5MKhMP6rbrdmija3A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I intend to create 2 partitions called New and Old of a table. An automatic
job will check if a record is older than 90 days from current time (based
on a field), it will move the record from New to Old.

The problem is that I cannot control which partition a select statement
with range criteria will check. (One way to perform that is to check on
application layer but I think it is not good idea)

Regards,

Hung Phan

Browse pgsql-general by date

  From Date Subject
Next Message Frank Millman 2017-10-08 08:08:31 Re: a JOIN to a VIEW seems slow
Previous Message David Rowley 2017-10-07 12:49:49 Re: a JOIN to a VIEW seems slow