0

How to connect postgresql to C ?

I am trying to connect postgresql database with my C program using libpq.h header file . I have written the code but it gives me error that Error: There is no connection to back end. Can anyone help me with this???

13th Jun 2020, 1:38 AM
Pratik Thakur
Pratik Thakur - avatar
2 Respostas
+ 1
Ahem, starting with the basic.... your database is started and running, right?
13th Jun 2020, 5:24 AM
ifl
ifl - avatar
0
Yes my database has started and is running
13th Jun 2020, 5:50 AM
Pratik Thakur
Pratik Thakur - avatar