Broken pipe at PQconnectdb

From: Ross Murray <rmurray(at)rgsc1(dot)rgsc(dot)nrcan(dot)gc(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Broken pipe at PQconnectdb
Date: 2003-08-06 20:41:07
Message-ID: 200308062041.h76Kf7o08340@rgsc1.nrn.nrcan.gc.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I thought I was having a C problem, but it appears only to be happening around
PQconnectdb. (In truth, execution stops so there may be other problems I haven't
got to yet.) I have, amongst much code:

void main(int argc, char *argv[]){
. . .
char *conxinfo . . .
PGconn *conx1 . . .
. . .
sprintf(conxinfo,"host=%s user=%s dbname=%s",argv[1],argv[2],argv[3]);
. . .
fprintf(stderr,"here ");
conx1 = PQconnectdb(conxinfo);
fprintf(stderr,"not here ");
. . .

When run I get:

here Segmentation Fault (core dumped)

The dump is: Broken pipe

Any clues?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-08-06 20:50:27 Re: pg_dump, psql load problem
Previous Message Wilson A. Galafassi Jr. 2003-08-06 20:35:40 ext3 block size