Re: Getting postmaster: StreamConnection: accept: The connection
В списке pgsql-general по дате отправления:
| От | Kevin Brannen |
|---|---|
| Тема | Re: Getting postmaster: StreamConnection: accept: The connection |
| Дата | |
| Msg-id | 3D3457F5.7080701@nurseamerica.net обсуждение |
| Ответ на | Getting postmaster: StreamConnection: accept: The connection was aborted ("Jeff Lu" <jklcom@mindspring.com>) |
| Список | pgsql-general |
Jeff Lu wrote:
> 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
>
From what you're describing, it sounds like the classic "missing
environmental variables" problem. If it works on the command line but
not from within a program (or from cron), then you're just missing 1 or
more env-vars, maybe PGPASSWORD? You should be able to track it down
from there. :-)
HTH,
Kevin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера