Michael Paquier
5bc716415a
Begin cleanup of version-related code
...
Due to changes in XlogRecPtr in 9.3, older version of pg_rman are
already incompatible either way, and it is a pain to maintain code
duplicated from past versions of Postgres, so rely a maximum on the
core structures.
2013-12-12 22:20:08 +09:00
Michael Paquier
83462de39b
Remove some internal variables in xlog_internal.h
...
It serves nothing to replicate such things.
2013-12-12 21:39:40 +09:00
Michael Paquier
200d1fde63
Remove multi-versioning of XLOG_PAGE_MAGIC
...
This is a pain to maintain, and simplifies the code a bit.
2013-12-12 21:28:33 +09:00
Michael Paquier
8a34a18ea1
Fix regression tests
...
Postgres 9.3 has introduced the previous timeline ID at last checkpoint
in pg_controldata, conflicting with the regression script used here...
2013-12-10 18:11:32 +09:00
Michael Paquier
26b97fbcee
Simplify regression test script for restore
...
The same condition was checked twice...
2013-12-10 17:50:28 +09:00
Michael Paquier
8aa6b84b98
Fix history file parsing when fetched from archive
...
History file format has changed from 9.2 to 9.3 to indicate the WAL record
when timeline branched off. In 9.2, the complete WAL file name was used
while in 9.3 the WAL record is used (like 1/4000090). pg_rman contains a
copy of a function of postgres core code to parse the history file that
was not anymore compatible, leading to errors related to timelines.
2013-12-10 17:27:51 +09:00
Michael Paquier
71d019ce56
Avoid regression diffs generated by custom .psqlrc
...
This is done by using psql with --no-psqlrc mode in related test script.
2013-12-10 09:28:05 +09:00
Michael Paquier
bd75d08ef3
Rename XLogFileName to XLogFileNameLong
...
This is a lazy solution to avoid a conflict with the existing API in
xlog_internal.h, and should be corrected to use the one in core.
2013-12-10 03:29:47 +09:00
Michael Paquier
4d7bf5373c
Fix uint64 cast forgotten by latest commit
2013-12-10 03:24:01 +09:00
Michael Paquier
1bc0f9baff
Support pg_rman for PG_VERSION_NUM >= 9.3
...
In Postgres 9.3, XLogRecPtr has been changed to a unique uint64, making
the old structure based on two uint32 obsolete. Note that this makes
pg_rman incompatible with PG <= 9.2.
2013-12-10 03:21:07 +09:00
Michael Paquier
44e8da5f2c
Add .gitignore for project
2013-12-10 02:32:17 +09:00
otsuka.knj@gmail.com
0144cc4fd9
- Fix possible broken backup which is getting from standby.
...
Use --standby-host and --standby-port, if backup is getting from standby.
- Add --hard-copy restore option.
The option can be used to copy archive WAL to archive directory instead of symlink.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@77 182aca00-e38e-11de-a668-6fd11605f5ce
2013-09-09 09:00:13 +00:00
otsuka.knj@gmail.com
40fb3560e5
Fix some regression test issues.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@76 182aca00-e38e-11de-a668-6fd11605f5ce
2013-06-09 12:47:37 +00:00
otsuka.knj@gmail.com
068280f4a3
Supporting PostgreSQL 9.2.
...
Fix a bug about --recovery-target-time.
Fix SPEC files for using normal user. (Reported by Nagayasu-san)
Fix a compiling bug on no LZLib environment.
Add restriction about Incremental backup.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@71 182aca00-e38e-11de-a668-6fd11605f5ce
2013-01-24 06:49:34 +00:00
otsuka.knj@gmail.com
98b6bac4b9
Convert newline characters from CRLF to LF.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@70 182aca00-e38e-11de-a668-6fd11605f5ce
2013-01-24 06:35:48 +00:00
t.katsumata1122@gmail.com
dfecc77c5e
update for pg_rman 1.2.4 (support standby backup)
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@57 182aca00-e38e-11de-a668-6fd11605f5ce
2012-05-18 08:54:36 +00:00
t.katsumata1122
8d97d65324
update for pg_rman 1.2.3 (support RHEL6)
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@52 182aca00-e38e-11de-a668-6fd11605f5ce
2011-12-26 14:21:58 +00:00
t.katsumata1122
6e39da4660
add specfile for PostgreSQL9.1
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@49 182aca00-e38e-11de-a668-6fd11605f5ce
2011-11-28 04:25:39 +00:00
t.katsumata1122
78eed96f63
revised for pg_rman1.2.2
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@48 182aca00-e38e-11de-a668-6fd11605f5ce
2011-11-28 04:22:05 +00:00
t.katsumata1122
ae6c0e0c55
revise for 1.2.1.
...
about ... keep-arclog-xxx and keep-srvlog-xxx.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@44 182aca00-e38e-11de-a668-6fd11605f5ce
2011-06-21 05:47:18 +00:00
katsumata.tomonari@oss.ntt.co.jp
566c47a6fc
release pg_rman-1.2.0.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@38 182aca00-e38e-11de-a668-6fd11605f5ce
2011-02-07 01:57:11 +00:00
itagaki.takahiro
686a5b0cf2
Remove dependency to libsml2 and libxslt.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@36 182aca00-e38e-11de-a668-6fd11605f5ce
2010-06-01 07:10:49 +00:00
itagaki.takahiro
9df43a0ad2
Yet another fixes for DST.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@35 182aca00-e38e-11de-a668-6fd11605f5ce
2010-06-01 06:48:21 +00:00
itagaki.takahiro
5933d52f54
Determine whether Daylight Saving Time is in effect when parse time.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@34 182aca00-e38e-11de-a668-6fd11605f5ce
2010-06-01 06:39:16 +00:00
itagaki.takahiro
397c9ebaad
Fix a bug in extracting filename from archive_command.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@33 182aca00-e38e-11de-a668-6fd11605f5ce
2010-03-03 05:05:56 +00:00
itagaki.takahiro
7889cafbe3
Don't write invalid fields to ini files.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@31 182aca00-e38e-11de-a668-6fd11605f5ce
2010-01-29 09:10:14 +00:00
itagaki.takahiro
2b4c33e263
Fix a bug to handle deleted files during backup. We should skipp those missing files during validation and restore.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@30 182aca00-e38e-11de-a668-6fd11605f5ce
2010-01-21 08:40:29 +00:00
itagaki.takahiro
18b133c544
add/fix comments.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@29 182aca00-e38e-11de-a668-6fd11605f5ce
2010-01-12 09:11:43 +00:00
itagaki.takahiro
4df4b1644f
Sync the latest pgut and update copyrights.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@28 182aca00-e38e-11de-a668-6fd11605f5ce
2010-01-06 02:25:21 +00:00
itagaki.takahiro
e3b9fd4e16
Use join_path_components() if possible.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@27 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-27 07:30:55 +00:00
itagaki.takahiro
182444045c
Fix typo and cleanup.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@26 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-22 22:47:10 +00:00
itagaki.takahiro
59d0911fa7
Fix a critical bug that pg_rman cannot restore database from incremental backup. Backup itself worked correctly, but restore command broke database files.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@25 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-22 07:36:31 +00:00
itagaki.takahiro
bc5717b1e0
Add a portable implementation for IsDir().
...
dirent.d_type is not in POSIX and does not exist at least on Solaris.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@23 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-18 02:44:35 +00:00
itagaki.takahiro
8863b7944b
Adjust to be able to build on 8.3 or older versions.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@22 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-18 02:26:19 +00:00
itagaki.takahiro
f0d7a1254e
Add missing headers and portable flock() implemented with fcntl() for Solaris.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@19 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-17 02:38:48 +00:00
itagaki.takahiro
6545c64ca8
Remove unused functions because of porting issues.
...
They are used by another project, but not used by pg_rman.
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@18 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-16 00:40:22 +00:00
itagaki.takahiro
454e8f7e25
fix the last commit.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@17 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-13 10:05:06 +00:00
itagaki.takahiro
fe48c34b5e
Support multiple versions of postgres servers with one pg_rman binary.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@16 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-13 08:54:34 +00:00
itagaki.takahiro
08063f31f9
Fix typo in comments.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@13 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-10 13:16:08 +00:00
itagaki.takahiro
a90ec8e46f
URL to be http, not https.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@4 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-08 00:49:45 +00:00
itagaki.takahiro
7fbb857d03
First import.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@2 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-08 00:21:28 +00:00
(no author)
007464ae8f
Initial directory structure.
...
git-svn-id: http://pg-rman.googlecode.com/svn/trunk@1 182aca00-e38e-11de-a668-6fd11605f5ce
2009-12-08 00:10:30 +00:00