Re: Partitions

From: John Scalia <jayknowsunix(at)gmail(dot)com>
To: rammohan ganapavarapu <rammohanganap(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Partitions
Date: 2017-11-09 23:41:25
Message-ID: D0905E2B-C734-498C-B138-77910CF6C33A@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Set up a trigger on insert to check for the existence of the partition table, then it could do the insert there or create the table if needed and insert. Look online. I know I’ve seen examples of this.

Jay

Sent from my iPad

> On Nov 9, 2017, at 6:28 PM, rammohan ganapavarapu <rammohanganap(at)gmail(dot)com> wrote:
>
> Hi,
>
> I have a requirement to create monthly partitions in my db, i am trying to understand what is the best way to do it, i know i can run a cron job to check if partition exist and create if not at the starting of month. Any suggestions?
>
> Thanks,
> Ram

In response to

  • Partitions at 2017-11-09 23:28:36 from rammohan ganapavarapu

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Frost 2017-11-10 00:18:57 Re: Partitions
Previous Message rammohan ganapavarapu 2017-11-09 23:28:36 Partitions