Re: Totally weird behaviour in org.postgresql.Driver - Mailing list pgsql-jdbc

From Віталій Тимчишин
Subject Re: Totally weird behaviour in org.postgresql.Driver
Date
Msg-id 331e40660903170441o2f52f36fpb18dcf94ff88d37a@mail.gmail.com
Whole thread Raw
In response to Re: Totally weird behaviour in org.postgresql.Driver  ("Peter" <peter@greatnowhere.com>)
Responses Re: Totally weird behaviour in org.postgresql.Driver
List pgsql-jdbc


2009/3/17 Peter <peter@greatnowhere.com>

So is there a way to associate user variable with Postgres connection that
can be picked up by SQL code running in that connection? Right now I can
only think of PlPerl function that caches user id in a global variable, but
am not sure about potential pitfalls of such setup...

You could use temporary table.
E.g. create temporary table localdata(name, value) as select values('user', 'john');
This will be connection-scope.

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: Totally weird behaviour in org.postgresql.Driver
Next
From: Hannu Krosing
Date:
Subject: Re: Totally weird behaviour in org.postgresql.Driver