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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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