Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 433319FB82D for ; Wed, 30 May 2007 18:45:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 85533-01 for ; Wed, 30 May 2007 18:45:07 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by postgresql.org (Postfix) with ESMTP id 3A9B09FB6B5 for ; Wed, 30 May 2007 18:45:09 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so751636ana for ; Wed, 30 May 2007 14:45:08 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=D3kpQ246ZnOadqEDbJDcDOz/4ECvjXO0DKqJtFNJrbaH8fSriVV2FtcLGMW2iLqlkjOSwjRYXII2tc1dZL6Ph0Zpjx+MsmPmffUWgJ7xhQpWsqAMHENlx/L1w8Z9ClTA1jvbavO8MQ5fmj4O6aXfbcPSKs5kHamUDF50IPkbsSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=uPKCT9xcisxZSpQemzBdNUq1yrgIQFSmMsb1UKLQI53+DelkBWGHrpfkeDsE3eUnn4lG6v9PjMkDno1Cx+M3ecFL5E3bHUpwDS+Qtqu23RFe7qt1zay03ubhC2cSqNs7DQ9uWFP1DuiRb/gam8IC8pIOFe8nM88cLXGnKGnkuXw= Received: by 10.100.33.14 with SMTP id g14mr6358533ang.1180561507825; Wed, 30 May 2007 14:45:07 -0700 (PDT) Received: by 10.100.143.13 with HTTP; Wed, 30 May 2007 14:45:07 -0700 (PDT) Message-ID: Date: Wed, 30 May 2007 14:45:07 -0700 From: "Y Sidhu" To: pgsql-performance@postgresql.org Subject: Database connection for Tbl_B established MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15647_11508028.1180561507760" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/630 X-Sequence-Number: 25020 ------=_Part_15647_11508028.1180561507760 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I have a question regarding "connection for xxyy established" The situation below shows records being added to 3 tables which are heavily populated. We never "update" any table, only read from them. Or we delete a full-day worth of records from them. The question is: Is this method of repeatedly establishing and re-establishing database connections with the same 3 tables efficient? As in, is there a better way to add data? Apr 25 03:38:47 saw alert_mgr[33696]: Database connection for Tbl_A established Apr 25 03:38:51 saw alert_mgr[33698]: Database connection for Tbl_B established Apr 25 03:38:54 saw alert_mgr[33700]: Database connection for Tbl_A established Apr 25 03:38:55 saw alert_mgr[25182]: user_new_locked: added 64 entries (66880 total) Apr 25 03:38:57 saw alert_mgr[33702]: Database connection for Tbl_B established Apr 25 03:38:59 saw alert_mgr[33704]: Database connection for Tbl_A established Apr 25 03:39:02 saw alert_mgr[33706]: Database connection for Tbl_B established Apr 25 03:39:04 saw alert_mgr[33708]: Database connection for Tbl_C established Apr 25 03:39:05 saw alert_mgr[33710]: Database connection for Tbl_A established Apr 25 03:39:06 saw alert_mgr[25182]: user_new_locked: added 64 entries (66944 total) Apr 25 03:39:06 saw alert_mgr[33712]: Database connection for Tbl_B established Apr 25 03:39:08 saw alert_mgr[33714]: Database connection for Tbl_A established Apr 25 03:39:11 saw alert_mgr[33716]: Database connection for Tbl_B established Apr 25 03:39:13 saw alert_mgr[33718]: Database connection for Tbl_A established Apr 25 03:39:15 saw alert_mgr[25182]: user_new_locked: added 64 entries (67008 total) Apr 25 03:39:18 saw alert_mgr[33720]: Database connection for Tbl_B established -- Yudhvir Singh Sidhu 408 375 3134 cell ------=_Part_15647_11508028.1180561507760 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have a question regarding "connection for xxyy established" The situation below shows records being added to 3 tables which are heavily populated. We never "update" any table, only read from them. Or we delete a full-day worth of records from them.

The question is:  Is this method of repeatedly establishing and re-establishing database connections with the same 3 tables efficient? As in, is there a better way to add data?

Apr 25 03:38:47 saw alert_mgr[33696]: Database connection for Tbl_A established
Apr 25 03:38:51 saw alert_mgr[33698]: Database connection for Tbl_B established
Apr 25 03:38:54 saw alert_mgr[33700]: Database connection for Tbl_A established
Apr 25 03:38:55 saw alert_mgr[25182]: user_new_locked: added 64 entries (66880 total)
Apr 25 03:38:57 saw alert_mgr[33702]: Database connection for Tbl_B established
Apr 25 03:38:59 saw alert_mgr[33704]: Database connection for Tbl_A established
Apr 25 03:39:02 saw alert_mgr[33706]: Database connection for Tbl_B established
Apr 25 03:39:04 saw alert_mgr[33708]: Database connection for Tbl_C established
Apr 25 03:39:05 saw alert_mgr[33710]: Database connection for Tbl_A established
Apr 25 03:39:06 saw alert_mgr[25182]: user_new_locked: added 64 entries (66944 total)
Apr 25 03:39:06 saw alert_mgr[33712]: Database connection for Tbl_B established
Apr 25 03:39:08 saw alert_mgr[33714]: Database connection for Tbl_A established
Apr 25 03:39:11 saw alert_mgr[33716]: Database connection for Tbl_B established
Apr 25 03:39:13 saw alert_mgr[33718]: Database connection for Tbl_A established
Apr 25 03:39:15 saw alert_mgr[25182]: user_new_locked: added 64 entries (67008 total)
Apr 25 03:39:18 saw alert_mgr[33720]: Database connection for Tbl_B established

--
Yudhvir Singh Sidhu
408 375 3134 cell ------=_Part_15647_11508028.1180561507760--