Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Novice > Restoring DB us...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 3047 of 3215
Post > Topic >>

Restoring DB using Continuous Archive Backup

by nicktjh@[EMAIL PROTECTED] (nick) Mar 27, 2008 at 06:21 PM

This is a multi-part message in MIME format.

--Boundary_(ID_RLr2Y3dn/5UvnQgY8W2fKQ)
Content-type: text/plain; charset=windows-1250
Content-transfer-encoding: quoted-printable

Hi everyone,

=20

I just got PGSQL up and running yesterday. One of the features that =
intrigue
me is the WAL. I am running tests to perform DB restores using WAL. The =
last
attempt ended in disaster and a reinstall.=20

=20

This may sound retarded. I can=92t seem to get a clear picture from the
manual. I quote (Chapter 24.3.3 Step 4):

=20

Restore the database files from your backup dump. Be careful that they =
are
restored with the right

owner****p (the database system user, not root!) and with the right
permissions. If you are using

tablespaces, you should verify that the symbolic links in pg_tblspc/ =
were
correctly restored.

=20

I need to know which kind of backup (as there are multiple suggested in =
the
manual) would that (underlined) be referring to?=20

=20

Is there a way to detach/attach databases (like ms-sql) and so perform
restoration on only one database instead of bringing down the service?

=20

Is there a method to re-run WAL after restoring an old backup without
resorting to a service stop-start?

=20

Thanks in advance,

=20

Nick

=20

=20


No virus found in this outgoing message.
Checked by AVG.=20
Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: =
3/26/2008
6:50 PM
=20

--Boundary_(ID_RLr2Y3dn/5UvnQgY8W2fKQ)
Content-type: text/html; charset=windows-1250
Content-transfer-encoding: 7BIT

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">


<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @[EMAIL PROTECTED]
 0 0 0 0 0 0 0 0 0;}
@[EMAIL PROTECTED]
 0 0 0 0 0 0 0 0 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@[EMAIL PROTECTED]
 Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi everyone,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I just got PGSQL up and running yesterday. One of the
features that intrigue me is the WAL. I am running tests to perform DB
restores
using WAL. The last attempt ended in disaster and a reinstall.
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>This may sound retarded. I can&#8217;t seem to get a
clear
picture from the manual. I quote (Chapter 24.3.3 Step
4):<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><i><font size=2
face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;
font-style:italic'><o:p>&nbsp;</o:p></span></font></i></p>

<p class=MsoNormal style='text-autospace:none'><i><u><font size=2
face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;
font-style:italic'>Restore the database files from your backup
dump</span></font></u></i><i><font
size=2 face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;
font-style:italic'>. Be careful that they are restored with the
right<o:p></o:p></span></font></i></p>

<p class=MsoNormal style='text-autospace:none'><i><font size=2
face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;
font-style:italic'>owner****p (the database system user, not
</span></font></i><i><font
size=1 face=NimbusMonL-Regu><span
style='font-size:9.0pt;font-family:NimbusMonL-Regu;
font-style:italic'>root</span></font></i><i><font size=2
face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;
font-style:italic'>!) and with the right permissions. If you are
using<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;font-style:italic'>tablespaces,
you should verify that the symbolic links in </span></font></i><i><font
size=1
face=NimbusMonL-Regu><span
style='font-size:9.0pt;font-family:NimbusMonL-Regu;
font-style:italic'>pg_tblspc/ </span></font></i><i><font size=2
face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;
font-style:italic'>were correctly
restored.<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:10.0pt;font-family:NimbusRomNo9L-Regu;font-style:italic'><o:p>&nbsp;</o:p></span></font></i></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'>I need to know which kind of backup
(as
there are multiple suggested in the manual) would that (underlined) be
referring
to? <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'>Is there a way to detach/attach
databases (like ms-sql) and so perform restoration on only one database
instead
of bringing down the service?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'>Is there a method to re-run WAL
after
restoring an old backup without resorting to a service
stop-start?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'>Thanks in
advance,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'>Nick<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=NimbusRomNo9L-Regu><span
style='font-size:
10.0pt;font-family:NimbusRomNo9L-Regu'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>
<BR>

<P><FONT SIZE=2>No virus found in this outgoing message.<BR>
Checked by AVG.<BR>
Version: 7.5.519 / Virus Database: 269.22.1/1345 - Release Date: 3/26/2008
6:50 PM<BR>
</FONT> </P>

--Boundary_(ID_RLr2Y3dn/5UvnQgY8W2fKQ)--
 




 5 Posts in Topic:
Restoring DB using Continuous Archive Backup
nicktjh@[EMAIL PROTECTED]  2008-03-27 18:21:43 
Re: Restoring DB using Continuous Archive Backup
ashish.karalkar@[EMAIL PR  2008-03-27 17:09:59 
Re: Restoring DB using Continuous Archive Backup
nicktjh@[EMAIL PROTECTED]  2008-03-28 12:15:05 
Re: Restoring DB using Continuous Archive Backup
salmanb@[EMAIL PROTECTED]  2008-03-28 00:59:29 
Re: Restoring DB using Continuous Archive Backup
ashish.karalkar@[EMAIL PR  2008-03-28 12:55:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 7:32:10 CDT 2008.