Skip site navigation (1) Skip section navigation (2)

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-22 19:22:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
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
FUNCTION_DO_SOMETHING      - use allocated memory
FUNCTION_FREE_SOMETHING  - deallocate using handle

and of cause general idea automatic deallocation at the and of session
Thank you.

pgsql-interfaces by date

Next:From: Forest WilkinsonDate: 2003-05-22 20:58:10
Subject: PGRES_FATAL_ERROR from queries in transaction abort state?
Previous:From: gemonsDate: 2003-05-21 19:20:50
Subject: Re: trouble with mod_auth_pgsql

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group