dbase restore - Mailing list pgsql-general

From Bradley Brown
Subject dbase restore
Date
Msg-id 3C98DB3F.835BA1A8@segrestfarms.com
Whole thread Raw
Responses Re: dbase restore  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello all,
    I am attempting to restore a dbase from file created by pg_dump. I
used "pg_dump > file.dump" as my dump command.
    I am using "psql -e dbase_name < file.dump" as my restore method. I
am running postgresql 7.0 on RedHat 7.0.
    When I try to restore th dbase I get the following on screen:

    "...NOTICE:  CREATE TABLE/PRIMARY KEY will create implicit index
'countries_pkey' for table 'countries' pqReadData() -- backend closed
the channel unexpectedly.
        This probably means the backend terminated abnormally
        before or while processing the request.
connection to server was lost".

The following is in the pg_err.log:

"...020320.15:20:48.197 [16231] NOTICE:  CREATE TABLE/PRIMARY KEY will
create implicit index 'advertisements_pkey' for table 'advertisements'
020320.15:20:48.390 [16231] NOTICE:  CREATE TABLE/PRIMARY KEY will
create implicit index 'affiliate_pkey' for table 'affiliate'
020320.15:20:48.569 [16231] NOTICE:  CREATE TABLE/PRIMARY KEY will
create implicit index 'affiliatestatus_pkey' for table 'affiliatestatus'

020320.15:20:48.713 [16231] NOTICE:  CREATE TABLE/PRIMARY KEY will
create implicit index 'category_pkey' for table 'category'
020320.15:20:48.872 [16231] NOTICE:  CREATE TABLE/PRIMARY KEY will
create implicit index 'config_pkey' for table 'config'
020320.15:20:49.056 [16231] NOTICE:  CREATE TABLE/PRIMARY KEY will
create implicit index 'countries_pkey' for table 'countries'
Server process (pid 16231) exited with status 139 at Wed Mar 20 15:20:49
2002
Terminating any active server processes...
Server processes were terminated at Wed Mar 20 15:20:49 2002
Reinitializing shared memory and semaphores
020320.15:20:49.261 [16232] DEBUG:  Data Base System is starting up at
Wed Mar 20 15:20:49 2002
020320.15:20:49.262 [16232] DEBUG:  Data Base System was interrupted
being in production at Wed Mar 20 15:14:43 2002
020320.15:20:49.263 [16232] DEBUG:  Data Base System is in production
state at Wed Mar 20 15:20:49 2002"

I get the same errors if I try to restore the schema and data or just
the schema. I know that the dump file is ok because I immediately took
it to another machine running postgresql and had it working in less than
a minute.

Can anyone tell me what exactly is going on and how I might fix whatever
problems might exist? Thanks in advance and I greatly appreciate it.
Bradley Brown



pgsql-general by date:

Previous
From: "PG Explorer"
Date:
Subject: Re: windows client for postgres?
Next
From: Vincent Stoessel
Date:
Subject: zerofill: lost my leading zeroes