libpq equivalent of jdbc:default:connection

Поиск
Список
Период
Сортировка
От Jim McLaughlin
Тема libpq equivalent of jdbc:default:connection
Дата
Msg-id CAA8xLvfLFHk2nhvsAxETqSd-jb2x+_qXRXncfoChAQB0awN=wQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: libpq equivalent of jdbc:default:connection  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-general
Hi all,

I am rewriting a pljava procedure in C++ with libpq. This procedure needs to access some temp tables that the calling procedure creates and populates. It seems that the connection created by PQconnectdb creates a new connection (I have tried all permutations of conninfo I could think of). Since the connection is new, the temp tables are not available obviously. On the pljava side, we simply created a connection with DriverManager.getConnection("jdbc:default:connection"), which behaved admirably. Is there a way to accomplish similar behavior with libpq?

Best,
Jim

В списке pgsql-general по дате отправления:

Предыдущее
От: Carlos Henrique Reimer
Дата:
Сообщение: Re: Out of memory condition
Следующее
От: David G Johnston
Дата:
Сообщение: Re: libpq equivalent of jdbc:default:connection