libpq equivalent of jdbc:default:connection - Mailing list pgsql-general

From Jim McLaughlin
Subject libpq equivalent of jdbc:default:connection
Date
Msg-id CAA8xLvfLFHk2nhvsAxETqSd-jb2x+_qXRXncfoChAQB0awN=wQ@mail.gmail.com
Whole thread Raw
Responses Re: libpq equivalent of jdbc:default:connection
List 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 by date:

Previous
From: Carlos Henrique Reimer
Date:
Subject: Re: Out of memory condition
Next
From: David G Johnston
Date:
Subject: Re: libpq equivalent of jdbc:default:connection