Re: PG optimization question - Mailing list pgsql-performance

From Ludwik Dylag
Subject Re: PG optimization question
Date
Msg-id 2fe468a21001091058q75074529p7674611926b9daa5@mail.gmail.com
Whole thread Raw
In response to Re: PG optimization question  (Nickolay <nitro@zhukcity.ru>)
List pgsql-performance
2010/1/9 Nickolay <nitro@zhukcity.ru>
Okay, I see your point with staging table. That's a good idea!
The only problem I see here is the transfer-to-archive-table process. As you've correctly noticed, the system is kind of a real-time and there can be dozens of processes writing to the staging table, i cannot see how to make the transfer/flush process right and clear...

The simplest way to do this is to create view and add/remove first/last day by recreating the view on daily interval.

--
Ludwik Dyląg

pgsql-performance by date:

Previous
From: Nickolay
Date:
Subject: Re: PG optimization question
Next
From: Craig Ringer
Date:
Subject: Re: PG optimization question