preserving state across external functions calls

From: "Maksim Likharev" <mlikharev(at)aurigin(dot)com>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: preserving state across external functions calls
Date: 2003-05-24 01:32:29
Message-ID: 56510AAEF435D240958D1CE8C6B1770A014A0BD9@mailc03.aurigin.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> Hi,
> I have a question about a correct way of preserving state/some
> information across pg functions call
> Let's imagine following example:
>
> External C functions:
>
> FUNCTION_INIT_SOMETHING - allocates a memory, returns some kind of
> handle
> FUNCTION_DO_SOMETHING - use allocated memory
> FUNCTION_FREE_SOMETHING - deallocate using handle
>
> and of cause general idea is automatic deallocation at the and of
> session scope
> Thank you.
>
>
>

Browse pgsql-interfaces by date

  From Date Subject
Next Message Constantin Teodorescu 2003-05-24 06:57:08 Re: PGaccess can't find 'oids'
Previous Message Bruce Momjian 2003-05-23 15:55:17 Re: [Fwd: PREPARE in ECPG]