I need to connect to the Postgres database from a C. I was able to connect to the database. Then I tried to execute the following command
create function sendevent() returns trigger as '/usr/lib/pgsql/libevent.so' language 'C';
When I do that I am getting the error message " permission denied for language c"
What am I doing wrong? Also, would it be possible to connect from a C++ program?
This is how I am building my program.
gcc -I/usr/include -I/usr/include/libxml2 -I/usr/include/pgsql/server -g -c ConnectDB.c
gcc -I/usr/include -I/usr/include/libxml2 -I/usr/include/pgsql/server -g -o conn -L/usr/lib -lpq ConnectDB.o
Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Many developers have database experience, but are new to PostgreSQL. It has some truly inspiring capabilities.
I have several years' experience with Microsoft's SQL Server. When I began working with MySQL, I wanted a quick-reference to MySQL (htt…