Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 1C1D49FA128 for ; Tue, 14 Aug 2007 15:42:24 -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 93447-09 for ; Tue, 14 Aug 2007 15:42:15 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.238]) by postgresql.org (Postfix) with ESMTP id 8461B9FA127 for ; Tue, 14 Aug 2007 15:42:17 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id l8so637675nzf for ; Tue, 14 Aug 2007 11:42:16 -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:content-transfer-encoding:content-disposition; b=R7aKGoSt5EzE6nHvJo1tH/1/5nZtQzM9aJ+1o6u77mZrx8t+HQpv8nqsSyI6YRyb3h/ZiFpjiW7+HioHWls078acD8IiF7GyCw55w6FKsjPWhtSCchmqwvgD6DM/ahx6RPq7nU+8IeBCGHaTOkkTc7gwOIy+xJ3M0cjQZ0T2zBg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=ntccCcQiTNrPpw5Tzu0OJmhwfchj2gOO4H7GEbRMgBsbgZG7WKkrS3s2HhjNYUpCUuHVgmqhOEICH3KLArQGU34/7l/gc5WcW1+BDVfKr/pgr53EmPhE/zeilYWgAKJWJx8NACXrG42TnMqPbUG523jQrempNVrKPMC6y/yS7q8= Received: by 10.114.137.2 with SMTP id k2mr284550wad.1187116935449; Tue, 14 Aug 2007 11:42:15 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Tue, 14 Aug 2007 11:42:15 -0700 (PDT) Message-ID: <4f4c2a010708141142p70c199ednab3ceffb4ce9f138@mail.gmail.com> Date: Tue, 14 Aug 2007 14:42:15 -0400 From: "Jon Horsman" To: "sql pgsql" Subject: When is a shared library unloaded? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/125 X-Sequence-Number: 29063 I have a shared library loaded into postgresql using CREATE FUNCTION medbevent() RETURNS trigger as '/usr/lib/pgsql/libmedbevent.so' language 'C'; 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? I'm getting the above logs when i wouldn't expect to see the library be unloaded which is causing me problems. Could the library get unloaded in this manner due to an internal error in the library? Thanks, Jon.