Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 96D3D9F9EA6 for ; Wed, 15 Aug 2007 10:16:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 42821-07 for ; Wed, 15 Aug 2007 10:16:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by postgresql.org (Postfix) with ESMTP id 3C2049F9A12 for ; Wed, 15 Aug 2007 10:16:24 -0300 (ADT) Received: by wa-out-1112.google.com with SMTP id k40so2823576wah for ; Wed, 15 Aug 2007 06:16:23 -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:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FCwl5z4QqSoMXNYpyMG1CxeuqR1h+tD0Mt5azgelf99NLKxTreFS6QSUfpKVLHN95B88ANxsDdtW8JmwrOcdkd9MJFud0y9/cp8/rJ58dABXrG9kd7HteQMxI3QkfdyYKjMQJOqC8n8Rovdjr4IFQ9IOOO/KJX9+e60KLmlK1Yw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iUArcQq+kp0FpFk5iFn1Y8SMT/4Z+n8paUrGuyldnasSepo8Cc/dOupqbeIbpmHuND7pq6U4JjOizXo0QLmOkcrSwanQRZrK7192s9m1uiCj2eLJg1kICKExBOSWfDXElRH76/wKROMiu+XyYEWkaOya2dADKg0KLIWlIE37GdY= Received: by 10.114.127.1 with SMTP id z1mr512187wac.1187183783056; Wed, 15 Aug 2007 06:16:23 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Wed, 15 Aug 2007 06:16:23 -0700 (PDT) Message-ID: <4f4c2a010708150616se51de62u3c59d7722c3d5097@mail.gmail.com> Date: Wed, 15 Aug 2007 09:16:23 -0400 From: "Jon Horsman" To: "Tom Lane" Subject: Re: When is a shared library unloaded? Cc: "sql pgsql" In-Reply-To: <10738.1187120065@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4f4c2a010708141142p70c199ednab3ceffb4ce9f138@mail.gmail.com> <10738.1187120065@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/128 X-Sequence-Number: 29066 > "Jon Horsman" writes: > > I'm randomly having issues with my triggers not firing (it turns out > > they are getting removed) and when i turned INFO logs on i saw the > > following > > > 2007-08-14 13:41:44.740305500 LOCATION: _fini, medbevent_init.c:129 > > 2007-08-14 13:41:45.790850500 INFO: 00000: medbeventlib -Unloading > > library _fini() is called > > > Could someone please explain when a shared library gets > > loaded/unloaded and how this all works? > > Are you sure the above doesn't just occur during server process > termination? AFAIK Postgres never unloads a library, except when you > specifically command it to load an updated version via the LOAD command. > > regards, tom lane Yup, the server process is still up and going, i have other clients connected to postgres that still function when this happens. I'm not using the LOAD command anywhere so thats not the problem. One of my colleagues was doing some reading and said he found something that stating that the fini() function is "unreliable", i'm not sure where he read that though... Jon.