From: Steve Doerr <sdoerr@swbell.net>
To: pgsql-admin@postgresql.org
Subject: Restore question
Date: Mon, 05 Aug 2002 23:06:22 -0500
Message-ID: <3D4F4B3E.4010602@swbell.net> (raw)
I've recently had to restore a couple of db's from backup and there were
obsolete employee tables in the dbs.
Now I can't drop or rename this or any other tables to properly load new
ones.
sqltest=# drop table employee
sqltest-#
I used pg_dump on the two dbs, and restored with the following:
psql -f /home/steve/080502sltestdb.out sqltest
Psql is also broken for the next command after one of these failed drops
(when it's showing the - instead of =):
sqltest-# select * from employee;
ERROR: parser: parse error at or near "select"
try again and:
sqltest=# select * from employee;
id | employee_id | name | addr1 | addr2 | addr3 | workphone |
homephone | grade | title_position | salary | salarytype |
exemptcode | gov_id | email | startdate | enddate | notes
Does anyone recognize what's broken here or know what I might be able to
do to fix it?
Thanks for any assistance.
Steve
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: sdoerr@swbell.net
Subject: Re: Restore question
In-Reply-To: <3D4F4B3E.4010602@swbell.net>
References: <3D4F4B3E.4010602@swbell.net>
* 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