Обсуждение: Getting postmaster: StreamConnection: accept: The connection was aborted

Поиск
Список
Период
Сортировка

Getting postmaster: StreamConnection: accept: The connection was aborted

От
"Jeff Lu"
Дата:

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