Search Postgresql Archives

Re: Postgresql 9.5 and Shell scripts/variables vs. C programming/defining a value to be used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 21, 2016 at 8:56 AM, Poul Kristensen <bcc5226@xxxxxxxxx> wrote:
Hi! 

Hopefully this is this list.

A shell variabel is  defined like this

var1= value

used like ${var1}.

How is the equal defened in the Postgresql C programming?

Thanks.

Poul

BTW: I have not received my ordered book yet!

Assuming I understand what you want, you want to write a program in the C language which interfaces with PostgreSQL. There are two methods to do this. One is to use libpq and do everything in "regular C" with calls to the libpq routines as documented here: https://www.postgresql.org/docs/9.5/static/libpq.html . This is, IMO, the more powerful interface, but it takes a lot more detailed programming on your part.
The second way is with "embedded SQL" which may be a bit easier to write, read, and understand. That is documented here: https://www.postgresql.org/docs/9.5/static/ecpg.html .​



--
Heisenberg may have been here.


Maranatha! <><
John McKown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux