| From: | Nathaniel <naptrel(at)yahoo(dot)co(dot)uk> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Mixing use of ECPG and libpq |
| Date: | 2009-09-10 10:46:50 |
| Message-ID: | 42383.78808.qm@web25008.mail.ukl.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hello all,
I'm trying to write a postgres client application in C.
I'm having to make use of some existing in-house code that soley uses ECPG to interact with a number of databases. However, I need to exploit some lower-level libpq functionality directly.
Does anyone know how I can get hold of a PGconn* handle for an already-open connection, when all I have is the connection name that ECPG uses to identify it?
Sadly, opening the connection myself with PGconnectdb isn't feasible as the in-house code (that's actually very good!) has multiple layers of abstraction that allow databases to be moved around between machines, while keeping backups etc ticking away seemlessly. But, as I say, it creates connections with ECPG.
Many thanks,
Nathaniel
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gauthier, Dave | 2009-09-10 13:41:01 | array datatype supported by Perl DBI with Postgres DBD ? |
| Previous Message | Andrus | 2009-09-10 06:34:53 | Re: pg_dump exists without any message when running from windows task scheduler |