iterate over partitions - Mailing list pgsql-general

From Glenn Schultz
Subject iterate over partitions
Date
Msg-id CAE-4=KHcn8cL+o7HVzF2pYiamynodQPB=OG2LGnt7JUqVgzXFQ@mail.gmail.com
Whole thread Raw
Responses Re: iterate over partitions
List 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

pgsql-general by date:

Previous
From: Devendra Y
Date:
Subject: Automatic Failover in PostgreSQL using PAF/repmgr
Next
From: Michael Lewis
Date:
Subject: Re: PostgreSQL 11 Auto vacuum