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

* Downlevel database
@ 2005-02-04 16:48  Gary Jackson <bargle@umiacs.umd.edu>
  0 siblings, 1 reply; 3+ messages in thread

From: Gary Jackson @ 2005-02-04 16:48 UTC (permalink / raw)
  To: pgsql-admin


We have a problem with a PosgreSQL database where the user cannot get 
to their tables any more.  I am not the primary administrator of this 
host (who is on vacation), nor am I the user of this database.  The 
/var/log/posgresql file has entries like the following, at the end:

FATAL 1:  Database "trees_rock" does not exist in the system catalog.

The current running version of the database is 7.2.2, and I suspect the 
database was created and maintained with 7.3.4 (after examining the 
bash history file for user postgres).

Would running downlevel software cause this problem?  Does this seem 
likely or possible?  Now that the old database software is running on 
the new data, what do I do to recover?

-- 
					Gary Jackson
					bargle@umiacs.umd.edu




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

* Re: Downlevel database
@ 2005-02-04 17:08  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Gary Jackson <bargle@umiacs.umd.edu>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2005-02-04 17:08 UTC (permalink / raw)
  To: Gary Jackson <bargle@umiacs.umd.edu>; +Cc: pgsql-admin

Gary Jackson <bargle@umiacs.umd.edu> writes:
> We have a problem with a PosgreSQL database where the user cannot get 
> to their tables any more.  I am not the primary administrator of this 
> host (who is on vacation), nor am I the user of this database.  The 
> /var/log/posgresql file has entries like the following, at the end:

> FATAL 1:  Database "trees_rock" does not exist in the system catalog.

> The current running version of the database is 7.2.2, and I suspect the 
> database was created and maintained with 7.3.4 (after examining the 
> bash history file for user postgres).

> Would running downlevel software cause this problem?  Does this seem 
> likely or possible?

No, no, and no.  A 7.2.anything server would flat out refuse to start in
a 7.3.* database (because it checks PG_VERSION).  You might have been
using 7.3 client-side code to talk to the 7.2 server, but that wouldn't
cause this sort of failure.

A possible quick-and-dirty solution is "VACUUM pg_database" (issued from
any of the databases that you can get into).  If that doesn't work then
you've got serious problems :-(

			regards, tom lane



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

* Re: Downlevel database
@ 2005-02-04 18:41  Gary Jackson <bargle@umiacs.umd.edu>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Gary Jackson @ 2005-02-04 18:41 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-admin


On Feb 4, 2005, at 12:08 PM, Tom Lane wrote:
>
> No, no, and no.  A 7.2.anything server would flat out refuse to start 
> in
> a 7.3.* database (because it checks PG_VERSION).  You might have been
> using 7.3 client-side code to talk to the 7.2 server, but that wouldn't
> cause this sort of failure.
>
> A possible quick-and-dirty solution is "VACUUM pg_database" (issued 
> from
> any of the databases that you can get into).  If that doesn't work then
> you've got serious problems :-(
>
> 			regards, tom lane
>

The 7.3 data directory was actually elsewhere -- duh on me.  Thanks for 
the help!

-- 
					Gary Jackson
					bargle@umiacs.umd.edu




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


end of thread, other threads:[~2005-02-04 18:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-02-04 16:48 Downlevel database Gary Jackson <bargle@umiacs.umd.edu>
2005-02-04 17:08 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-02-04 18:41   ` Gary Jackson <bargle@umiacs.umd.edu>

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