X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3AE4711F605C for ; Fri, 28 Apr 2006 11:36:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 85531-07 for ; Fri, 28 Apr 2006 11:35:57 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from stash.illumen.com (unknown [64.207.29.137]) by postgresql.org (Postfix) with ESMTP id 0B52B11F6069 for ; Fri, 28 Apr 2006 11:35:54 -0300 (ADT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: New system recommendations X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Fri, 28 Apr 2006 08:35:52 -0600 Message-ID: <8511B4970E0D124898E973DF496F9B432515DE@stash.stackdump.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] New system recommendations Thread-Index: AcZqcssgtMx0UXCTQ9Kkp1HJ1dFMMQAXWD8w From: "Benjamin Krajmalnik" To: "Ben K." , X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/332 X-Sequence-Number: 21501 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 dashboard snapshot. 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). -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Ben K. Sent: Thursday, April 27, 2006 9:19 PM To: pgsql-admin@postgresql.org 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 outside postgresql). There was an interesting article on odbc - that application code can make=20 big differences in database related performance.=20 http://ourworld.compuserve.com/homepages/Ken_North/ODBCPERF.HTM Thought odbc performance might be also a thing to consider but this=20 article seemed to attest otherwise. Hence the question. Regards, Ben K. ---------------------------(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 match