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: 20100806153640.935640k5b8tx2inc@student.up.ac.za (view raw or flat)
Thread:
Lists: pgsql-novice
Hi,

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
s25291930(at)tuks(dot)co(dot)za

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


Responses

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-2014 The PostgreSQL Global Development Group