Skip site navigation (1) Skip section navigation (2)

PostgreSQL program question.

From: Alexsey Nadtochey <irbis(at)ai(dot)kharkov(dot)com>
To: bugs(at)postgreSQL(dot)org
Subject: PostgreSQL program question.
Date: 1999-10-21 15:41:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
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.

Alexsey Nadtochey, system administrator of Internet server,
Kharkov Aviation institute, depatment of Computer Science.
e-mail: irbis(at)ai(dot)kharkov(dot)com

Attachment: testsys_db.sql
Description: text/plain (1.4 KB)
Attachment: main.c
Description: text/plain (340 bytes)
Attachment: db.h
Description: text/plain (1.1 KB)
Attachment: db.c
Description: text/plain (5.6 KB)

pgsql-bugs by date

Next:From: Krzysztof CzumaDate: 1999-10-24 23:43:30
Subject: postgresql creates huge files
Previous:From: Fernando SchapachnikDate: 1999-10-20 13:48:53
Subject: Query not ending on 6.5.0 over Solaris 2.5.1 SPARC

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group