Re: Per-session data?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Steve Atkins <steve(at)blighty(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Per-session data?
Date: 2004-05-03 17:48:02
Message-ID: 200405031948.02067.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Steve Atkins wrote:
> I need to keep a small amount of information (things like a unique
> session identifier, the application - as opposed to database -
> username and so on) that is local to each database session. It needs
> to be visible from within plpgsql trigger functions and will be used
> on a large fraction of updates.

> Create a temporary table at the beginning of each session
> containing the data, and simply read it out of that, relying on the
> temporary table to be session-local.

This is exactly how you should do it.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Mascari 2004-05-03 18:05:20 Re: Per-session data?
Previous Message Peter Eisentraut 2004-05-03 17:46:41 Re: Constrint Name Length...