AW: [HACKERS] livetime of a variable defined in a c-procedure (fw d)

From: ZEUGSWETTER Andreas IZ5 <Andreas(dot)Zeugswetter(at)telecom(dot)at>
To: "Victoria W(dot)" <wicki(at)terror(dot)de>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: AW: [HACKERS] livetime of a variable defined in a c-procedure (fw d)
Date: 1999-06-07 09:18:30
Message-ID: 219F68D65015D011A8E000006F8590C60267B38A@sdexcsrv1.f000.d0188.sd.spardat.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> "Victoria W." <wicki(at)terror(dot)de> writes:
> > CREATE FUNCTION add_rechnr(int4) RETURNS int4
> > AS '/usr/local/pgsql/lib/modules/funcs.so' LANGUAGE 'c';
>
> I don't think there is an "unload shared library" function in Postgres
> (it'd be hard or impossible to implement on some Unixes, anyway). So
> the only way to stop referencing a shared library once it's been opened
> is to terminate the backend process.
>
In my experience you can do the psql command:

load '/usr/local/pgsql/lib/modules/funcs.so';

after you changed the lib to load the new library into the backend.
Unfortunately I think you will lose the last value in "rechnr".

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message ZEUGSWETTER Andreas IZ5 1999-06-07 09:58:39 Re: [HACKERS] Bizarre coding in _bt_binsrch
Previous Message Hannu Krosing 1999-06-07 07:40:36 Re: [HACKERS] 6.6 items