Re: [ADMIN] pg_restore error: function plpgsql_call_handler already exists with same argument types

2002-12-02 Thread Tom Lane
"Nick Fankhauser" <[EMAIL PROTECTED]> writes: >> There are a lot of situations where pg_dump fails to pick a safe reload >> order at the moment (that's why pg_restore has that wild and woolly set >> of options for manual adjustment of the reload order). > Is this considered a bug, or a generally a

Re: [ADMIN] pg_restore error: function plpgsql_call_handler already exists with same argument types

2002-12-02 Thread Nick Fankhauser
> You could check this by running pg_restore with query logging > turned on, to see what commands it's actually issuing -- or just do > "pg_restore -s" into a text file and eyeball the generated script. I did this, and there is a view created before the table it refers to. > There are a lot of

Re: [ADMIN] pg_restore error: function plpgsql_call_handler

2002-12-02 Thread Oliver Elphick
On Mon, 2002-12-02 at 14:47, Nick Fankhauser wrote: > Apparently my first problem is the result of plpgsql already being defined > in template1. I haven't touched template1 since my install, but it may be > that template1 comes with this already defined, or it may be that template1 > is set up thi

Re: [ADMIN] pg_restore error: function plpgsql_call_handler already exists with same argument types

2002-12-02 Thread Tom Lane
"Nick Fankhauser" <[EMAIL PROTECTED]> writes: > It appears that in the process of creating the schema, pg_restore attempted > to create an object that required the existence of actor, which wasn't > restored yet. My conjecture is that the objects are just being created in > the wrong order. Probab

Re: [ADMIN] pg_restore error: function plpgsql_call_handler already exists with same argument types

2002-12-02 Thread Nick Fankhauser
Hi- Thanks for the helpful suggestions on this problem last Wednesday morning- I spent the rest of the day in a meeting, and I'm now returning to the problem post-holiday. I apologize for the slow response to your ideas. Tom- You were correct, I was restoring the wrong database in my example with

Re: [ADMIN] pg_restore error: function plpgsql_call_handler already

2002-11-27 Thread Bruce Momjian
If I have to take a guess, it is that you have a language defined in template1 (and hence in the new db) or in the database you are loading into and that is conflicting with the load of the dump. --- Nick Fankhauser wrote: >

Re: [ADMIN] pg_restore error: function plpgsql_call_handler

2002-11-27 Thread Oliver Elphick
On Wed, 2002-11-27 at 13:16, Nick Fankhauser wrote: > Hi- > > I'm trying to do a dump & restore of a complete database using tar archive > format. I've previously used the text dump approach, so I'm very new to this > method. > > I created the dump using: > > pg_dump -Ft alpha > alpha.dump.tar >

[ADMIN] pg_restore error: function plpgsql_call_handler already exists with same argument types

2002-11-27 Thread Nick Fankhauser
Hi- I'm trying to do a dump & restore of a complete database using tar archive format. I've previously used the text dump approach, so I'm very new to this method. I created the dump using: pg_dump -Ft alpha > alpha.dump.tar I'm trying to restore into an empty db using: pg_restore -d alpha2