473,378 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Salvage older PostgreSQL data disk - help?


Greetings,

In short:

Using a new FreeBSD (4.9) PostgreSQL (7.3) server, can I
rescue PostgreSQL data from a hard drive pulled from an
older (motherboard just died) FreeBSD (4.??) PostgreSQL (7.??)
server? If so, how?

The long version:

Helping a friend who had a FreeBSD PostgreSQL server crash recently.
This was a motherboard failure, and the data on the drives looks
usable, but we are rebuilding the server, using a newer PostgreSQL
(7.3) - his most recent PostgreSQL dump was a few weeks ago,
(hey, at least he was backing it up - sort of). The version of
PostgreSQL used to build his data is unknown - whatever was current
around August of 2002 (7.1 maybe?). (Once the server is built and
the old drive mounted, I may be able to figure out the exact version
from the FreeBSD package DB, which should also be on that drive.)

Normally, I would tell him to just run with the dump from a couple
of weeks ago and live with it, but there has been a lot of non-
duplicable work done since then by an individual who left his
organization 2 days ago (and apparently cursed his server when
she left ;-) )

It would be real nice if we could use one of the old server drives
to restore his PostgreSQL DB - without having to build an old
PostgreSQL server just to extract the data, then rebuild on a 7.3
server.

Is this feasible? Pits or tipfalls, anyone?

Cheers and many thanks,

Conrad
Nov 12 '05 #1
6 1991
On Fri, Dec 19, 2003 at 12:43:24AM +0000, Conrad wrote:

It would be real nice if we could use one of the old server drives
to restore his PostgreSQL DB - without having to build an old
PostgreSQL server just to extract the data, then rebuild on a 7.3
server.

Is this feasible? Pits or tipfalls, anyone?


No. You need the old server.

A

--
----
Andrew Sullivan 204-4141 Yonge Street
Afilias Canada Toronto, Ontario Canada
<an****@libertyrms.info> M2P 2A8
+1 416 646 3304 x110
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to ma*******@postgresql.org)

Nov 12 '05 #2
Conrad <bo***********@nospam.com> writes:
Helping a friend who had a FreeBSD PostgreSQL server crash recently.
This was a motherboard failure, and the data on the drives looks
usable, but we are rebuilding the server, using a newer PostgreSQL
(7.3) - his most recent PostgreSQL dump was a few weeks ago,
(hey, at least he was backing it up - sort of). The version of
PostgreSQL used to build his data is unknown - whatever was current
around August of 2002 (7.1 maybe?). (Once the server is built and
the old drive mounted, I may be able to figure out the exact version
from the FreeBSD package DB, which should also be on that drive.)


The PG_VERSION files in the data directory will give you the major
version (e.g. 7.1), and you can use any server in that major version
series --- though of course you should always use the latest minor
release in the series ;-)

You will need to use some version in the same series; a newer major
release will *not* start up.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #3
I think you're going to have to build an old PG. But really, how long
does that take, an hour maybe on a slow machine? Just install it to a
non-standard directory and you'll be fine.

In fact, on second thought, you should find out what version of PG he was
using, and stick to that. You really shouldn't upgrade PG versions
(especially major versions, but minor versions as well) without running
your own tests.

Jon

On Fri, 19 Dec 2003, Conrad wrote:

Greetings,

In short:

Using a new FreeBSD (4.9) PostgreSQL (7.3) server, can I
rescue PostgreSQL data from a hard drive pulled from an
older (motherboard just died) FreeBSD (4.??) PostgreSQL (7.??)
server? If so, how?

The long version:

Helping a friend who had a FreeBSD PostgreSQL server crash recently.
This was a motherboard failure, and the data on the drives looks
usable, but we are rebuilding the server, using a newer PostgreSQL
(7.3) - his most recent PostgreSQL dump was a few weeks ago,
(hey, at least he was backing it up - sort of). The version of
PostgreSQL used to build his data is unknown - whatever was current
around August of 2002 (7.1 maybe?). (Once the server is built and
the old drive mounted, I may be able to figure out the exact version
from the FreeBSD package DB, which should also be on that drive.)

Normally, I would tell him to just run with the dump from a couple
of weeks ago and live with it, but there has been a lot of non-
duplicable work done since then by an individual who left his
organization 2 days ago (and apparently cursed his server when
she left ;-) )

It would be real nice if we could use one of the old server drives
to restore his PostgreSQL DB - without having to build an old
PostgreSQL server just to extract the data, then rebuild on a 7.3
server.

Is this feasible? Pits or tipfalls, anyone?

Cheers and many thanks,

Conrad

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 12 '05 #4

On Fri, 19 Dec 2003 00:43:24 +0000, Conrad wrote:

Greetings,

In short:

Using a new FreeBSD (4.9) PostgreSQL (7.3) server, can I
rescue PostgreSQL data from a hard drive pulled from an
older (motherboard just died) FreeBSD (4.??) PostgreSQL (7.??)
server? If so, how?

The long version:

[drop table rest_of_message]

Many thanks, all - 7.2.1 (the version that was on the old
machine building as we speak. Do I need to do the full
initbd, or can I just slide the old data/ tree in place?

Thanks,

Conrad
Nov 12 '05 #5
The world rejoiced as Conrad <bo***********@nospam.com> wrote:
On Fri, 19 Dec 2003 00:43:24 +0000, Conrad wrote:

Greetings,

In short:

Using a new FreeBSD (4.9) PostgreSQL (7.3) server, can I
rescue PostgreSQL data from a hard drive pulled from an
older (motherboard just died) FreeBSD (4.??) PostgreSQL (7.??)
server? If so, how?

The long version:

[drop table rest_of_message]

Many thanks, all - 7.2.1 (the version that was on the old
machine building as we speak. Do I need to do the full
initbd, or can I just slide the old data/ tree in place?


The first thing to try certainly is to "slide the old data tree into
place." I'd suggest keeping a scratch copy, of course...

It ought to "just work." Indeed, it ought to "just work" if you put
7.2.4 software in place.
--
output = ("cbbrowne" "@" "ntlug.org")
http://cbbrowne.com/info/multiplexor.html
But what can you do with it? -- ubiquitous cry from Linux-user
partner. -- Andy Pearce, <aj*@hpopd.pwd.hp.com>
Nov 12 '05 #6
On Fri, 19 Dec 2003, Jonathan Bartlett wrote:
I think you're going to have to build an old PG. But really, how long
does that take, an hour maybe on a slow machine? Just install it to a
non-standard directory and you'll be fine.


FYI, on the slowest computer I own, pgsql 7.2 took 30 minutes to run
../configure and 2.5 hours to run make / make install. that machine is a
486DX250 laptop (Toshiba 4700) with 16 Megs of RAM. A 50 MHz Sparc 20
with SCSI drives took about half that time.
---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: My Internet | last post by:
Hello, I am in the process to define if our product can use PostgreSQL. Do you know what type of application use PostgreSQL, and also what is the size of the database for these projects? ...
17
by: Carmen Wai | last post by:
Hello: I would like to know whether there is any different in installing Postgresql on the Linux system with file system of EXT2 or EXT3. I have two machines with idential OS (Red Hat 7.3...
29
by: Paul Ganainm | last post by:
Hi all, Following up on another thread, here is a comparison between FB and PG from an FB'ers POV. BTW, FB is the love-child of Open-Source-Interbase. BTW, I have tried to be as accurate as I...
3
by: Froggy / Froggy Corp. | last post by:
Thx for your quick answer too :) Richard Huxton wrote: > > On Wednesday 18 February 2004 20:18, Froggy / Froggy Corp. wrote: > > Hello, > > > > I asked one time for more "benchmark"...
2
by: Anthony | last post by:
Our Database is having errors. We are currently using PostgreSQL to store 2.5 Million records per day. The average addition to our primary table is 4.5 Gigs of data. We are doing this on a dual...
4
by: mike.griffin | last post by:
My name is Mike Griffin and we are adding PostgreSQL support to our product, MyGeneration. MyGeneration pulls meta-data from DBMS systems to generate business objects and stored procedures and...
9
by: Andy B | last post by:
If I bought one of these boxes/OS combos as a postgresql database server, would postgresql be able to make the best use of it with a huge (e.g. 40GB) database? Box: HP ProLiant DL585, with ...
2
by: Shelby Cain | last post by:
I'm putting 8.0 through its paces and here are a few things I've noticed on the native win32 port running on my workstation (2.0g p4 w/256 megs of ram). Here is the output of "vacuum verbose...
14
by: jptpjs via AccessMonster.com | last post by:
I have an application I built in Access 2003. It is an electronic medical records program split into front end (8 computers) and back end. This runs flawlessly. Purchased a billing program that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.