Getting postmaster: StreamConnection: accept: The connection was aborted - Mailing list pgsql-general

From Jeff Lu
Subject Getting postmaster: StreamConnection: accept: The connection was aborted
Date
Msg-id 026b01c22aaa$5becd5d0$1501a8c0@DemoServer
Whole thread Raw
List pgsql-general

Hi,

I'm trying to perform a pg_dump from within a C program and I'm getting

postmaster: StreamConnection: accept: The connection was aborted

I've tried two different ways:

1) system("./pg_dump --file=database.dat database");

AND

2) system("./dbbackup.bat");

Where dbbackup.bat consists of

pg_dump --file=database.dat database

Both ways have the same error.

However, it works fine with run dbbackup.bat from a command line.

Please help

Thanks

-Jeff

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [BUGS] It is a bug in pred_test()! (Was: [SQL] Please, HELP! Why is the query plan so wrong???)
Next
From: Bruno Wolff III
Date:
Subject: Thanks