Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id E4E009FA1B3 for ; Tue, 14 Aug 2007 16:34:31 -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 10277-06 for ; Tue, 14 Aug 2007 16:34:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E7CA49FA17D for ; Tue, 14 Aug 2007 16:34:27 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l7EJYP1X010739; Tue, 14 Aug 2007 15:34:25 -0400 (EDT) To: "Jon Horsman" cc: "sql pgsql" Subject: Re: When is a shared library unloaded? In-reply-to: <4f4c2a010708141142p70c199ednab3ceffb4ce9f138@mail.gmail.com> References: <4f4c2a010708141142p70c199ednab3ceffb4ce9f138@mail.gmail.com> Comments: In-reply-to "Jon Horsman" message dated "Tue, 14 Aug 2007 14:42:15 -0400" Date: Tue, 14 Aug 2007 15:34:25 -0400 Message-ID: <10738.1187120065@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/126 X-Sequence-Number: 29064 "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