> What package would I use if I am to do this
> in C?
Try libpq:
http://www.postgresql.org/docs/8.3/static/libpq.html
-----------------------------------------------
Quan Zongliang
quanzongliang(at)gmail(dot)com
CIT Japan: http://www.cit.co.jp
CIT China: http://www.citbj.com.cn