iterate over partitions

From: Glenn Schultz <glenn(at)bondlab(dot)io>
To: pgsql-general(at)postgresql(dot)org
Subject: iterate over partitions
Date: 2019-06-28 19:11:47
Message-ID: CAE-4=KHcn8cL+o7HVzF2pYiamynodQPB=OG2LGnt7JUqVgzXFQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

I have a large table partioned by month. I would like to run a query -
which adds derived data to the current data and inserts the data into a new
table. The new table is the target for users.

How can I iterate over the partition tables to insert data and build the
new table?
This is done monthly, am I better off creating a materalized view each
month?

Best,
Glenn

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Lewis 2019-06-28 19:37:01 Re: PostgreSQL 11 Auto vacuum
Previous Message Devendra Y 2019-06-28 19:04:13 Automatic Failover in PostgreSQL using PAF/repmgr