Skip site navigation (1) Skip section navigation (2)

Libpq in C Language Function

From: "Carel Combrink" <s25291930(at)tuks(dot)co(dot)za>
To: "PostgreSQL Novice List" <pgsql-novice(at)postgresql(dot)org>
Subject: Libpq in C Language Function
Date: 2010-08-06 13:36:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice

Is it possible to connect to another database from within a database.  
The 2 databases will probably not be on the same computer.

Is it possible to create a C LANGUAGE function that connects to  
another database using libpq? I have tried this but after calling  
PQconnectedb the status returned by PQstatus is CONNECTION_BAD.

Carel Combrink

This message and attachments are subject to a disclaimer. Please refer
to for full
details. / Hierdie boodskap en aanhangsels is aan 'n vrywaringsklousule
onderhewig. Volledige besonderhede is by beskikbaar.


pgsql-novice by date

Next:From: Joshua TolleyDate: 2010-08-06 13:53:54
Subject: Re: Libpq in C Language Function
Previous:From: Richard BroersmaDate: 2010-08-06 04:42:40
Subject: Re: Table-design for categories, suggestions needed

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group