pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Help with restore
2+ messages / 2 participants
[nested] [flat]

* Help with restore
@ 2004-11-05 02:31 Allen Smith <asmith86@midsouth.rr.com>
  2004-11-08 10:04 ` Re: Help with restore Dilipan Sebastiampillai <dilipan.sebastiampillai@framestore-cfc.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Allen Smith @ 2004-11-05 02:31 UTC (permalink / raw)
  To: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Help with restore
  2004-11-05 02:31 Help with restore Allen Smith <asmith86@midsouth.rr.com>
@ 2004-11-08 10:04 ` Dilipan Sebastiampillai <dilipan.sebastiampillai@framestore-cfc.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Dilipan Sebastiampillai @ 2004-11-08 10:04 UTC (permalink / raw)
  To: Allen Smith <asmith86@midsouth.rr.com>; +Cc: pgsql-admin


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






^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-11-08 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-11-05 02:31 Help with restore Allen Smith <asmith86@midsouth.rr.com>
2004-11-08 10:04 ` Dilipan Sebastiampillai <dilipan.sebastiampillai@framestore-cfc.com>

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