pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dilipan Sebastiampillai <dilipan.sebastiampillai@framestore-cfc.com>
To: Allen Smith <asmith86@midsouth.rr.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Help with restore
Date: Mon, 08 Nov 2004 10:04:48 +0000
Message-ID: <418F44C0.1060300@framestore-cfc.com> (raw)
In-Reply-To: <418AE5E6.4020309@midsouth.rr.com>
References: <418AE5E6.4020309@midsouth.rr.com>


> 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
>

I had the same problem.

One way is to use as template the table template0 with the following 
command :

createdb yourdatabasename -T template0

and then

pg_restore ....

it works if you didn't make anychanges to your template1 table.

hope it helps

Dilipan


> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)






view thread (2+ messages)

Message-ID: <418F44C0.1060300@framestore-cfc.com>
Permalink:  ../418F44C0.1060300@framestore-cfc.com/
Also on:    postgresql.org/message-id/418F44C0.1060300@framestore-cfc.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: dilipan.sebastiampillai@framestore-cfc.com, asmith86@midsouth.rr.com
  Subject: Re: Help with restore
  In-Reply-To: <418F44C0.1060300@framestore-cfc.com>
  References: <418AE5E6.4020309@midsouth.rr.com> <418F44C0.1060300@framestore-cfc.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox