Re: Does a call to a language handler provide a context/session, and somewhere to keep session data?

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: david(at)andl(dot)org
Cc: pgsql-general-owner+M220479=david=andl(dot)org(at)postgresql(dot)org, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Does a call to a language handler provide a context/session, and somewhere to keep session data?
Date: 2016-03-07 05:28:05
Message-ID: CAKFQuwYnorKZZOQH52DwQncceXAQvLCSp1QAgNu0YOcmYqVcNg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Mar 6, 2016 at 10:21 PM, <david(at)andl(dot)org> wrote:

> Given that a language handler would be expected to be persistent, and to
> support concurrent (and reentrant) calls within a single database, is there
> a unique context or session identifier available?
>
> Is there a place to store data, to be retrieved later in the same session?
>
> Is there a place to store data (a cache?) that has been retrieved from the
> database for use by concurrent sessions using that database?
>

http://www.postgresql.org/docs/9.5/interactive/plpython-sharing.html

​PL/R also has an implementation for this kind of thing.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message fredrik 2016-03-07 06:18:07 Re: "missing chunk number XX for toast value YY in pg_toast ..." after pg_basebackup.
Previous Message david 2016-03-07 05:21:42 Does a call to a language handler provide a context/session, and somewhere to keep session data?