The stored procedure is a plpgsql function which gets passed parameters
from the monitoring agent.
It then dynamically creates a device record for the monitored device if
one does not yet exist.
Once that is done it creates a test record for the particular test if
one does not exist.
Once that is done, it aggregates dynamically the data into 4 tables - a
daily snapshot, a weekly snapshot, and a monthly snapshot, and a
Once all of that has been accomplished, it creates a raw log entry
(which as of next week will go to a given partition). This data goes
into the partitioned table to facilitate purging of retention periods
without hammering at the database and having to rebalance indices (I
just truncate the partition once it is no longer needed).
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Ben K.
Sent: Thursday, April 27, 2006 9:19 PM
Subject: Re: [ADMIN] New system recommendations
> Record insertion is done via an ODBC call to a stored procedure from a
> Windows based host monitor"
I wondered what this stored procedure was (is it a function or something
There was an interesting article on odbc - that application code can
big differences in database related performance.
Thought odbc performance might be also a thing to consider but this
article seemed to attest otherwise. Hence the question.
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
pgsql-admin by date
|Next:||From: Hogan, James F. Jr.||Date: 2006-04-28 15:05:21|
|Subject: Re: Trouble installing pltcl language|
|Previous:||From: Tom Lane||Date: 2006-04-28 14:25:30|
|Subject: Re: Restoring a database as another user |