|
Home > Archive > PostgreSQL Discussion > May 2005 > Accessing PostgreSQL from C++
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Accessing PostgreSQL from C++
|
|
| Jeff Brown 2005-05-31, 9:23 am |
| Hi guys
Is there some sort of C API available for PostgreSQL?
Cheers
Jeff
---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend
| |
| Alvaro Herrera 2005-05-31, 11:23 am |
| On Mon, May 30, 2005 at 11:31:17PM -0700, Jeff Brown wrote:
> Hi guys
>
> Is there some sort of C API available for PostgreSQL?
For C you can use libpq. For C++, see libpqxx in gborg.org (or did it
move to pgfoundry.org?)
--
Alvaro Herrera (<alvherre[a]surnet.cl> )
"Oh, great altar of passive entertainment, bestow upon me thy discordant images
at such speed as to render linear thought impossible" (Calvin a la TV)
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql
.org so that your
message can get through to the mailing list cleanly
| |
| Havasvölgyi Ottó 2005-05-31, 11:23 am |
| Jeff,
Yes, libpq. Look at the 27th chapter in the manual.
Otto
----- Original Message -----
From: "Jeff Brown" <intolife10@yahoo.com>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, May 31, 2005 8:31 AM
Subject: [GENERAL] Accessing PostgreSQL from C++
> Hi guys
>
> Is there some sort of C API available for PostgreSQL?
>
> Cheers
> Jeff
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
>
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere
" to majordomo@postgresql
.org)
| |
| Christopher Browne 2005-05-31, 11:23 am |
| intolife10@yahoo.com (Jeff Brown) wrote:
> Is there some sort of C API available for PostgreSQL?
Yes, there is a C API available for PostgreSQL. It is called libpq.
Was there some particular reason why you could not find it in the
documentation? It has an entire chapter devoted to it in the
documentation tree...
<http://www.postgresql.org/docs/curr...atic/libpq.html>
--
output = ("cbbrowne" "@" "ntlug.org")
http://linuxdatabases.info/info/lsf.html
Rules of the Evil Overlord #25. "No matter how well it would perform,
I will never construct any sort of machinery which is completely
indestructible except for one small and virtually inaccessible
vulnerable spot." <http://www.eviloverlord.com/>
| |
| Gianni Mariani 2005-05-31, 8:24 pm |
| Jeff Brown wrote:
>Hi guys
>
>Is there some sort of C API available for PostgreSQL?
>
>
I'm quite happy with libpqxx.
ftp://gborg.postgresql.org/pub/libp...xx-2.5.0.tar.gz
>Cheers
>Jeff
>
>---------------------------(end of broadcast)---------------------------
>TIP 8: explain analyze is your friend
>
>
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
|
|
|
|
|