Re: [ADMIN] Help with restore

2004-11-08 Thread Dilipan Sebastiampillai
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 lookin

Re: [ADMIN] How to run pg_restore

2004-11-08 Thread Dilipan Sebastiampillai
I know that pg_dumpall -g gives you user/groups only. Dilipan Nitin Jawarkar wrote: hello, I have create database and run "psql -d databasename -f filename(.out)" so according to this it restores all data but not create users, i want to create users so how it can be done plz tell

[ADMIN] psql won't accept pg_dump

2004-11-08 Thread Michael Hipp
Here's what I do: pg_dump testdb > test.psql dropdb testdb createdb testdb psql -f test.psql testdb But there are 2 things where it won't accept it's own output as input. # CASE #1 psql:test.psql:18: ERROR: unrecognized configuration parameter "default_with_oids" # CASE #2 psql:t

Re: [ADMIN] psql won't accept pg_dump

2004-11-08 Thread Tom Lane
Michael Hipp <[EMAIL PROTECTED]> writes: > # CASE #1 > psql:test.psql:18: ERROR: unrecognized configuration parameter > "default_with_oids" Apparently you're trying to use an 8.0 pg_dump with a 7.4 backend. > # CASE #2 > psql:test.psql:42: ERROR: invalid input syntax for type t

Re: [ADMIN] [PERFORM] poor performance in migrated database

2004-11-08 Thread Carlos Lopez
This is one of the queries that work,and is the first in a 4 level nested query where do I find how to interpret explains??? thanks in advance, Carlos. mate=# explain analyze select * from vdocinvdpre;

Re: [ADMIN] psql won't accept pg_dump

2004-11-08 Thread Michael Hipp
Tom Lane wrote: Michael Hipp <[EMAIL PROTECTED]> writes: # CASE #1 psql:test.psql:18: ERROR: unrecognized configuration parameter "default_with_oids" Apparently you're trying to use an 8.0 pg_dump with a 7.4 backend. # CASE #2 psql:test.psql:42: ERROR: invalid input syntax for t

[ADMIN] using oids as primary keys and foreign keys

2004-11-08 Thread David Bear
I've looked in the archives searching on oid and 'access' (microsoft) to see how others have handled migration from data bases in ms-access to postgresql. MS access has an auto-inc field that is used frequently as a uniq id. Seems the OID has the same function. Yet, I've seem parts of messages tha

[ADMIN] Large transaction problem

2004-11-08 Thread Paul B. Anderson
I'm trying to move data from an Oracle database into postgresql 7.4.3.  I have a program that is extracting data and writing it to an sql script as a long series of inserts (20,000 at a time).  When I run these scripts using psql, I occassionally get a problem that is reported as ERROR:  canc

Re: [ADMIN] Large transaction problem

2004-11-08 Thread Tom Lane
"Paul B. Anderson" <[EMAIL PROTECTED]> writes: > I'm trying to move data from an Oracle database into postgresql 7.4.3. > I have a program that is extracting data and writing it to an sql script > as a long series of inserts (20,000 at a time). When I run these > scripts using psql, I occassio

Re: [ADMIN] using oids as primary keys and foreign keys

2004-11-08 Thread Michael Fuhr
On Mon, Nov 08, 2004 at 03:36:26PM -0700, David Bear wrote: > I've looked in the archives searching on oid and 'access' (microsoft) > to see how others have handled migration from data bases in ms-access > to postgresql. MS access has an auto-inc field that is used frequently > as a uniq id. Seems

[ADMIN] using psql copy command

2004-11-08 Thread David Bear
I'm getting fairly frustrated here. I'm trying to populate a table using psql copy command. The file lives in the client machine where psql is running, not on the back end. I assume from the readings that I can you the \copy command to get to data in my clients file system. Yet, its not working.. H

[ADMIN] using psql \copy command

2004-11-08 Thread David Bear
I'm getting fairly frustrated here. I'm trying to populate a table using psql copy command. The file lives in the client machine where psql is running, not on the back end. I assume from the readings that I can you the \copy command to get to data in my clients file system. Yet, its not working..

Re: [ADMIN] [PERFORM] poor performance in migrated database

2004-11-08 Thread Tom Lane
Carlos Lopez <[EMAIL PROTECTED]> writes: > This is one of the queries that work,and is the first > in a 4 level nested query Do you really need UNION (as opposed to UNION ALL) in this query? The EXPLAIN shows that almost half the runtime is going into the sort/uniq to eliminate duplicates ...

Re: [ADMIN] using psql copy command

2004-11-08 Thread Tom Lane
David Bear <[EMAIL PROTECTED]> writes: > npcenter=> \copy "contactName" from > "/home/iddwb/data/copp/dev/npcenter/contactName.txt" > "/home/iddwb/data/copp/dev/npcenter/contactName.txt": No such file or > directory > I must be missing something very obvious.. Help... Use single quotes, or none