Re: libpq equivalent of jdbc:default:connection

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: libpq equivalent of jdbc:default:connection
Date: 2014-12-11 16:58:28
Message-ID: 1418317108636-5830110.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Jim McLaughlin wrote
> 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

I suspect you want this:

http://www.postgresql.org/docs/9.3/interactive/spi-spi-connect.html

but I've never used c++

David J.

--
View this message in context: http://postgresql.nabble.com/libpq-equivalent-of-jdbc-default-connection-tp5830106p5830110.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim McLaughlin 2014-12-11 17:14:44 Re: libpq equivalent of jdbc:default:connection
Previous Message Jim McLaughlin 2014-12-11 16:48:04 libpq equivalent of jdbc:default:connection