Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 2263A475AFF for ; Mon, 4 Nov 2002 08:32:44 -0500 (EST) Received: from mx6.mail.ru (mx6.mail.ru [194.67.57.16]) by postgresql.org (Postfix) with ESMTP id 3D25F475A7F for ; Mon, 4 Nov 2002 08:32:43 -0500 (EST) Received: from drweb by mx6.mail.ru with drweb-scanned (Exim MX.6) id 188hLR-000C4t-00 for pgsql-admin@postgresql.org; Mon, 04 Nov 2002 16:32:45 +0300 Received: from [213.128.193.142] (helo=mail.ru) by mx6.mail.ru with esmtp (Exim SMTP.6) id 188hLN-000C06-00 for pgsql-admin@postgresql.org; Mon, 04 Nov 2002 16:32:41 +0300 Message-ID: <3DC676F6.9060900@mail.ru> Date: Mon, 04 Nov 2002 16:32:38 +0300 From: dima <_pppp@mail.ru> User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0.0) Gecko/20020816 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: dumping a password-protected db from a perl script or a binary Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/41 X-Sequence-Number: 6229 How can i dump a password-protected database using perl (DBI or pg) or C (using libpq)? I can't pass the password to pg_dump utility (I was trying to pass it via tty also) when running system() from perl.