X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 067B63A2B31 for ; Fri, 5 Nov 2004 02:41:56 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16052-05 for ; Fri, 5 Nov 2004 02:41:44 +0000 (GMT) Received: from ms-smtp-03-eri0.ohiordc.rr.com (ms-smtp-03-smtplb.ohiordc.rr.com [65.24.5.137]) by svr1.postgresql.org (Postfix) with ESMTP id AE61E3A2B81 for ; Fri, 5 Nov 2004 02:41:46 +0000 (GMT) Received: from [24.165.161.59] (cpe-024-165-161-059.midsouth.rr.com [24.165.161.59]) by ms-smtp-03-eri0.ohiordc.rr.com (8.12.10/8.12.7) with ESMTP id iA52ffwZ010334 for ; Thu, 4 Nov 2004 21:41:44 -0500 (EST) Message-ID: <418AE5E6.4020309@midsouth.rr.com> Date: Thu, 04 Nov 2004 20:31:02 -0600 From: Allen Smith User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Help with restore Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=FROM_ENDS_IN_NUMS X-Spam-Level: X-Archive-Number: 200411/38 X-Sequence-Number: 15423 Im having a little problem. First let me say im a total newbie as far as sys-admin and such. Normally Im just a production guy. But as of late im starting to have more responsibilties, backup, set up new clients, etc. so please bear with me in my detail I just dont know what info you need and what you dont...... I made a back up like this: pg_dump -v -Fc -f bkp.tar.gz dbname then I dropped the db then I recreated the db then when I tried to restore like this: pg_restore -v -O -d dbname bkp.tar.gz after I enter the password I get pg_restore: creating FUNC PROCEDURAL LANGUAGE plpgsql_call_handler() pg_restore: [archiver (db)] could not execute query: ERROR: function "plpgsql_call_handler" already exists with same argument types pg_restore: *** aborted because of error however after looking back over my notes and the documentation that I recieved I noticed that I was supposed to make the backup like this: pg_dump -U dbname -v -Fc -f bkp.tar.gz dbname Sincec this is apearantly a specific way to make the backup Im assuming that that is why the restore doesnt work since it was setup do restore form that specific backup syntax. What I would like to know is, how I can get the data out of this archive, so that I can recover the data and put it back in place and get the site up and running. any suggestions????? Thanks in Advance Allen Smith