Re: [ADMIN] Partitions - Mailing list pgsql-admin

From John Scalia
Subject Re: [ADMIN] Partitions
Date
Msg-id D0905E2B-C734-498C-B138-77910CF6C33A@gmail.com
Whole thread Raw
In response to [ADMIN] Partitions  (rammohan ganapavarapu <rammohanganap@gmail.com>)
Responses Re: [ADMIN] Partitions  (Scott Mead <scottm@openscg.com>)
List 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
createthe 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@gmail.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,
iknow i can run a cron job to check if partition exist and create if not at the starting of month. Any suggestions? 
>
> Thanks,
> Ram


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

pgsql-admin by date:

Previous
From: rammohan ganapavarapu
Date:
Subject: [ADMIN] Partitions
Next
From: Stephen Frost
Date:
Subject: Re: [ADMIN] Partitions