Daily Rotated Insertion - Mailing list pgsql-admin

From Haifeng Liu
Subject Daily Rotated Insertion
Date
Msg-id BLU0-SMTP195BAAB8B6E63CE73CF5849B9450@phx.gbl
Whole thread Raw
Responses Re: Daily Rotated Insertion  (Sergey Konoplev <gray.ru@gmail.com>)
List pgsql-admin
Hi all:

I want to do a daily rotated insertion according the data's date field. The data come from a real time analyzer, which
meansit's date field is nearly the current date but not exactly, even not exactly in the date order. 

The real trouble is it will be a heavy insertion, I don't want to code a complex trigger function. I'd like to simply
redirectthe insertion to a "CURRENT" table, and rename it every mid-night. But it's difficult to make 'check', which is
requiredby a better query performance. 

Well, I can create a trigger to redirect insertion to 'yesterday', 'today' and 'tomorrow', but I am still expecting a
moresimple and more fast solution. 

Any idea is appreciated. Thanks in advance.


Best regards.
liuhaifeng

pgsql-admin by date:

Previous
From: BGoebel
Date:
Subject: Re: german sort is wrong
Next
From: Sergey Konoplev
Date:
Subject: Re: Daily Rotated Insertion