Thread: postgres and c

postgres and c

From
"Maphin Philip"
Date:
<div class="Section1"><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">How can we use c programs to manipulate data in postgres database?</span></font><p
class="MsoNormal"><fontface="Arial" size="2"><span style="font-size:10.0pt; 
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial">Thanks</span></font><p class="MsoNormal"><font face="Arial" size="2"><span style="font-size:10.0pt;
font-family:Arial"> </span></font></div>

Re: postgres and c

From
Zahid Khan
Date:


You can use LIBPQ for that.

http://www.postgresql.org/docs/8.2/static/libpq.html

Thanks,
Zahid K.

--- Maphin Philip <maphin.philip@nestgroup.net> wrote:

> How can we use c programs to manipulate data in
> postgres database?
> 
>  
> 
>  
> 
>  
> 
> Thanks
> 
>  
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


Re: postgres and c

From
"Reid Thompson"
Date:
<p><font size="2">On Tue, 2007-05-01 at 16:55 +0530, Maphin Philip wrote:<br /> > How can we use c programs to
manipulatedata in postgres database?<br /> ><br /> > <br /> ><br /> > <br /> ><br /> > <br /> ><br
/>> Thanks<br /> ><br /> > <br /> ><br /> > <a
href="http://www.postgresql.org/docs/8.2/static/libpq.html">http://www.postgresql.org/docs/8.2/static/libpq.html</a><br
/></font>

Re: postgres and c

From
Michael Meskes
Date:
On Tue, May 01, 2007 at 08:19:51AM -0400, Reid Thompson wrote:
> > http://www.postgresql.org/docs/8.2/static/libpq.html

And of course also ecpg:

http://www.postgresql.org/docs/8.2/static/ecpg.html

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!


Re: postgres and c

From
Reid Thompson
Date:
On Tue, 2007-05-01 at 17:49 +0200, Michael Meskes wrote:
> On Tue, May 01, 2007 at 08:19:51AM -0400, Reid Thompson wrote:
> > > http://www.postgresql.org/docs/8.2/static/libpq.html
> 
> And of course also ecpg:
> 
> http://www.postgresql.org/docs/8.2/static/ecpg.html
> 
> Michael
yep -- i've had very good results using ecpg.


Re: postgres and c

From
Ken Jennings
Date:
On Tuesday 2007-05-01 12:01, Reid Thompson wrote:
> On Tue, 2007-05-01 at 17:49 +0200, Michael Meskes wrote:
> > On Tue, May 01, 2007 at 08:19:51AM -0400, Reid Thompson wrote:
> > > > http://www.postgresql.org/docs/8.2/static/libpq.html
> >
> > And of course also ecpg:
> >
> > http://www.postgresql.org/docs/8.2/static/ecpg.html

> yep -- i've had very good results using ecpg.

Go to http://en.wikipedia.org/wiki/Postgresql

The last entry points to a simple example program for Embedded/SQL: 
"Test_PGC, Example embedded SQL/C program for PostgreSQL showing database 
operations and SQLSTATE testing."


Re: postgres and c

From
Reid Thompson
Date:
Ken Jennings wrote:
> On Tuesday 2007-05-01 12:01, Reid Thompson wrote:
>   
>> On Tue, 2007-05-01 at 17:49 +0200, Michael Meskes wrote:
>>     
>>> On Tue, May 01, 2007 at 08:19:51AM -0400, Reid Thompson wrote:
>>>       
>>>>> http://www.postgresql.org/docs/8.2/static/libpq.html
>>>>>           
>>> And of course also ecpg:
>>>
>>> http://www.postgresql.org/docs/8.2/static/ecpg.html
>>>       
>
>   
>> yep -- i've had very good results using ecpg.
>>     
>
> Go to http://en.wikipedia.org/wiki/Postgresql
>
> The last entry points to a simple example program for Embedded/SQL: 
> "Test_PGC, Example embedded SQL/C program for PostgreSQL showing database 
> operations and SQLSTATE testing."
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>   
also see
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/

and
http://developer.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/