postmodern 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/pg_wal_archive +8 -8
- data/bin/pg_wal_restore +4 -4
- data/lib/postmodern/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0960555c043a47d221233279cfad99aff42e1823
|
4
|
+
data.tar.gz: b2b3aad195541a02019eb189273681c01f04d922
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9caa033d35e41635ec8bb5468bb37a5a87c7437082b6a85e8c5d0a59f229200abe15e15e6f8debb99d6835218d832ce9652385de295706ba0f71efb81253027
|
7
|
+
data.tar.gz: b31a316fa01261427baefbca18e22ee94db961c18ab3d38f314c06d78d5b15a4f3913b862524caff44c183be7d193f173cb25f8e9cb54981b76f181ca3d5314c
|
data/bin/pg_wal_archive
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#!/bin/
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
# This script is a wrapper for a user-generated pg_wal_archive.local
|
4
4
|
# script. If that script does not exist, this executable does nothing
|
@@ -7,12 +7,12 @@
|
|
7
7
|
# This script (and the local script) should be executable as the
|
8
8
|
# postgres user.
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
ENV['WAL_ARCHIVE_FILE']=ARGV[0] # maps to %f in postgres archiving
|
11
|
+
ENV['WAL_ARCHIVE_PATH']=ARGV[1] # maps to %p in postgres archiving
|
12
12
|
|
13
|
-
|
14
|
-
|
13
|
+
puts "Archiving file: #{ENV['WAL_ARCHIVE_FILE']}"
|
14
|
+
puts "Archiving path: #{ENV['WAL_ARCHIVE_PATH']}"
|
15
15
|
|
16
|
-
if which pg_wal_archive.local &>/dev/null
|
17
|
-
pg_wal_archive.local
|
18
|
-
|
16
|
+
if system('which pg_wal_archive.local &>/dev/null')
|
17
|
+
`pg_wal_archive.local`
|
18
|
+
end
|
data/bin/pg_wal_restore
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
#!/bin/
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
if which pg_wal_restore.local &>/dev/null
|
4
|
-
pg_wal_restore.local
|
5
|
-
|
3
|
+
if system('which pg_wal_restore.local &>/dev/null')
|
4
|
+
`pg_wal_restore.local #{ARGV[0]} #{ARGV[1]}`
|
5
|
+
end
|
data/lib/postmodern/version.rb
CHANGED