PostgreSQL program question.

Started by Alexsey Nadtocheyover 26 years ago1 messagesbugs
Jump to latest
#1Alexsey Nadtochey
irbis@ai.kharkov.com

Greeting!
I trying to use postgres here and have one problem. I attached my
database's create script - testsys_db.sql and example of program that
having bug. So, about bug. If I uncomment line number 192 this program is
crashing with "core" file. As I guess something not wrong with memory free
process in PQclear(). But if I comment line memory will leak (as I think).
It's not problem for me, because my database isn't have many records, but
may be other have simular problem.
I compiling this program like this:

gcc -o labworks -lpq -lcrypt db.c main.c

I using postgresql-6.4.2 with RedHat 6.0.

Thank's
-------------------
Alexsey Nadtochey, system administrator of Internet server,
Kharkov Aviation institute, depatment of Computer Science.
e-mail: irbis@ai.kharkov.com

Attachments:

testsys_db.sqltext/plain; charset=US-ASCII; name=testsys_db.sqlDownload
main.ctext/plain; charset=US-ASCII; name=main.cDownload
db.htext/plain; charset=US-ASCII; name=db.hDownload
db.ctext/plain; charset=US-ASCII; name=db.cDownload