Re: Totally weird behaviour in org.postgresql.Driver

Поиск
Список
Период
Сортировка
От Віталій Тимчишин
Тема Re: Totally weird behaviour in org.postgresql.Driver
Дата
Msg-id 331e40660903170441o2f52f36fpb18dcf94ff88d37a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Totally weird behaviour in org.postgresql.Driver  ("Peter" <peter@greatnowhere.com>)
Ответы Re: Totally weird behaviour in org.postgresql.Driver  (Hannu Krosing <hannu@2ndQuadrant.com>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Jowett
Дата:
Сообщение: Re: Totally weird behaviour in org.postgresql.Driver
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: Totally weird behaviour in org.postgresql.Driver