eric <[EMAIL PROTECTED]> writes: > this segfault is all about PQclear();
If you pass an uninitialized pointer to a library routine, it's likely to segfault. This is *your* bug, not the library's, because the library routine has no way to know that you gave it a random pointer value instead of something that actually points to valid data. You might want to adjust your compiler switches so that the compiler warns about uses of uninitialized variables. In gcc, "-O -Wall" is a pretty good combination. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org