Revisions of pgbackrest

Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 787841 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 30)
- update to 2.24 version : Bugfix
  + Bug Fixes:
    - Prevent defunct processes in asynchronous archive commands.
    - Error when archive-get/archive-push/restore are not run on a
      PostgreSQL host.
    - Read HTTP content to eof when size/encoding not specified.
    - Fix resume when the resumable backup was created by Perl. In
      this case the resumable backup should be ignored, but the C
      code was not able to load the partial manifest written by Perl
      since the format differs slightly.
      Add validations to catch this case and continue gracefully.
  + Features:
    - Auto-select backup set on restore when time target is specified.
      Auto-selection is performed only when --set is not specified.
      If a backup set for the given target time cannot not be found,
      the latest (default) backup set will be used.
  + Improvements:
    - Skip pg_internal.init temp file during backup.
    - Add more validations to the manifest on backup.
  + Documentation Improvements:
    - Prevent lock-bot from adding comments to locked issues.
- Packaging
  + use %autopatch
  + use a normalized name for source %name-%version.tar.gz
  + spec cleaning
  + Refresh patch libpq-fe.h_localisation.patch
  + Delete merged upstream_wrongly_bring_back_pg_config.patch
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) committed (revision 29)
- update to 2.23 : Bugfix
  + Bug Fixes:
    - Fix missing files corrupting the manifest. If a file was
    removed by PostgreSQL during the backup (or was missing from
    the standby) then the next file might not be copied and updated
    in the manifest. If this happened then the backup would error
    when restored.
  + Improvements:
    - Use pkg-config instead of xml2-config for libxml2 build options.
    - Validate checksums are set in the manifest on backup/restore.
- Introduce upstream_wrongly_bring_back_pg_config.patch to fix
  upstream code (using pg_config in client code)
  Upstream issue #920
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 766771 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 28)
- update to 2.22 : Bugfix
- update to 2.21 : C Migration Complete
- update to 2.20 : Bug fixes
- Update and cleanup spec
  + Remove all uneeded Perl related part
  + Update copyright
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 754103 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 27)
- update to 2.19 : C Migrations and Bug Fixes
  + Bug Fixes:
    - Fix remote timeout in delta restore. When performing a delta 
   restore on a largely unchanged cluster the remote could timeout 
   if no files were fetched from the repository within 
   protocol-timeout. Add keep-alives to prevent remote timeout.
    - Fix handling of repeated HTTP headers. When HTTP headers are 
    repeated they should be considered equivalent to a single 
    comma-separated header rather than generating an error, which 
    was the prior behavior.
  + Improvements:
    - JSON output from the info command is no longer pretty-printed.
    Monitoring systems can more easily ingest the JSON without linefeeds.
    External tools such as jq can be used to pretty-print if desired.
    - The check command is implemented entirely in C.
  + Documentation Improvements:
    - Document how to contribute to pgBackRest.
    - Document maximum version for auto-stop option.
  + Test Suite Improvements:
    - Fix container test path being used when --vm=none.
    - Fix mismatched timezone in expect test.
    - Don't autogenerate embedded libc code by default.
- Cleanup spec (license and pkgconfig)
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 735528 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 26)
- Update to 2.18 version PostgreSQL 12 Support
  + Features:
    - PostgreSQL 12 support.
    - Add info command set option for detailed text output.
    - Add standby restore type. This automatically adds 
      standby_mode=on to recovery.conf for PostgreSQL < 12 
      and creates standby.signal for PostgreSQL ≥ 12, creating a 
      common interface between PostgreSQL versions.
  + Improvements:
    - The restore command is implemented entirely in C.
  + Documentation Improvements:
    - Document the relationship between db-timeout and protocol-timeout.
    - Add documentation clarifications regarding standby repositories.
    - Add FAQ for time-based Point-in-Time Recovery.
- Update to 2.17 version C Migrations and Bug Fixes
  + Bug fixes:
    - Improve slow manifest build for very large quantities of 
      tables/segments.
    - Fix exclusions for special files.
  + Improvements:
    - The stanza-create/update/delete commands are implemented entirely in C.
    - The start/stop commands are implemented entirely in C.
    - Create log directories/files with 0750/0640 mode.
  + Documentation Bug Fixes: 
    - Fix yum.p.o package being installed when custom package specified.
  + Documentation Improvements:
    - Build pgBackRest as an unprivileged user.
Martin Pluskal's avatar Martin Pluskal (pluskalm) accepted request 725929 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 25)
- Update to 2.16 release C Migrations and Bug Fixes
- Packaging adding new libpq-fe dependency
- Added patch libpq-fe.h_localisation.patch

- Update to 2.15.1 release
- Packaging export %optflag as CFLAG
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) committed (revision 24)
- Emergency rollback, 2.14 segv
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) committed (revision 23)
- Update to 2.14 release
  + Bug Fixes:
    Fix segfault when process-max > 8 for archive-push/archive-get.
  + Improvements:
    Bypass database checks when stanza-delete issued with force.
    Add configure script for improved multi-platform support.
  + Documentation Features:
    Add user guides for CentOS/RHEL 6/7.
- 2.13 release
  + Bug Fixes:
    Fix zero-length reads causing problems for IO filters that
    did not expect them.
    Fix reliability of error reporting from local/remote processes.
    Fix Posix/CIFS error messages reporting the wrong filename on
    write/sync/close.
- 2.12 release
  + IMPORTANT NOTE: The new TLS/SSL implementation forbids dots in
   S3 bucket names per RFC-2818. This security fix is required for
   compliant hostname verification.
  + Bug Fixes:
    Fix issues when a path option is / terminated.
    Fix issues when log-level-file=off is set for the archive-get
    command.
    Fix C code to recognize host:port option format like Perl does.
    Fix issues with remote/local command logging options.
   + Improvements:
    The archive-push command is implemented entirely in C.
    Increase process-max limit to 999.
    Improve error message when an S3 bucket name contains dots.
   + Documentation Improvements:
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 683736 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 22)
- Update to 2.11 release
  + C Implementation of Archive Get
  + Bug Fixes:
    - Fix possible truncated WAL segments when an error occurs
      mid-write.
    - Fix info command missing WAL min/max when stanza specified.
    - Fix non-compliant JSON for options passed from C to Perl.
  + Improvements:
    - The archive-get command is implemented entirely in C.
    - Enable socket keep-alive on older Perl versions.
    - Error when parameters are passed to a command that does not
      accept parameters.
    - Add hints when unable to find a WAL segment in the archive.
    - Improve error when hostname cannot be found in a
      certificate.
    - Add additional options to backup.manifest for debugging
      purposes.
  + Documentation Improvements:
    - Update default documentation version to PostgreSQL 10.
- Packaging:
  + Remove merge upstream patch (2cd204f.patch)
  + Fix install destination to %{_bindir}

- Include upstream patch 2cd204f.patch to fix issue#677
  + Fix check for improperly configured pg-path.
Martin Pluskal's avatar Martin Pluskal (pluskalm) accepted request 677608 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 21)
- Include upstream patch 2cd204f.patch to fix issue#677 

- Update to 2.10 version bug fixes
  + Add unimplemented S3 driver method required for archive-get.
  + Fix check for improperly configured pg-path. 
- Packaging:
  + Fix trailing space in changes (jengelh)
  + Use a factual description (jengelh)

- Packaging: remove comments/remark fixed and merged issue #659
- Update to 2.08 version : bug fixes and improvement
- Update spec (date and order)
  is ported to C
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 672999 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 20)
- Update to 2.09 version bug fixes and improvements
  + Fix issue with multiple async status files causing a hard error.
  + info command is implemented entirely in C.
  + Simplify info command text message when no stanzas are present
    by replacing the repository path with "the repository".
  + Add _DARWIN_C_SOURCE flag to Makefile for MacOS builds.
  + Update address lookup in C TLS client to use modern methods.
  + Include Posix-compliant header for strcasecmp() and fd_set.
- Packaging : remove comments/remark fixed and merged issue #659

- Update to 2.08 version : bug fixes and improvement 
  See more information https://pgbackrest.org/release.html
- Add libxml2-devel as buildrequires
- Add a comment about gethostbyname() upstream issue #659
- Update spec (date and order)
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 653201 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 19)
- Re-add all needed Perl (upstream issue #629): not all the code
  is ported to C
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 650502 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 18)
- Update to 2.07 version : bug fixes and improvement 
  See more information https://pgbackrest.org/release.html
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 645056 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 17)
- Bug fix and improvement 2.06 version 
  See more information https://pgbackrest.org/release.html
- Packaging : Remove Requires perl, it not more used
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) committed (revision 16)
- Bug fix and improvement 2.05 version 
  See more information https://pgbackrest.org/release.html
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) committed (revision 15)
EMERGENCY
- Fix packaging : Avoid segv backtrace
  + Don't package and distribute perl or LibC
  They are already in final binary.
  Ref https://github.com/pgbackrest/pgbackrest/issues/558 
  + As a result : tests are no more usable, (only vagrant runs)
  use a simple call of the binary (pgbackrest version) to exclude
  futur backtrace
  + Clean spec: licence and remove macro for file
Martin Pluskal's avatar Martin Pluskal (pluskalm) accepted request 622034 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 14)
- Critical bug fix release 2.04 (Backup Resume)
  + IMPORTANT NOTE: This release fixes a critical bug in the backup 
    resume feature. All resumed backups prior to this release should 
    be considered inconsistent. 
    See more information https://pgbackrest.org/release.html
  + Bug Fixes:
    - Fix critical bug in resume that resulted in inconsistent 
    backups. A regression in v0.82 removed the timestamp comparison 
    when deciding which files from the aborted backup to keep on 
    resume.
    - Fix error in selective restore when only one user database 
    exists in the cluster.
    - Fix non-compliant ISO-8601 timestamp format in S3 authorization
    headers. AWS and some gateways were tolerant of space rather than
    zero-padded hours while others were not.
  + Features:
    - PostgreSQL 11 Beta 2 support.
  + Improvements:
    - Improve the HTTP client to set content-length to 0 when not 
    specified by the server. S3 (and gateways) always set 
    content-length or transfer-encoding but HTTP 1.1 does not require
    it and proxies (e.g. HAProxy) may not include either.
    - Set search_path = 'pg_catalog' on PostgreSQL connections
  + Documentation Improvements:
    - Create a new section to describe building pgBackRest and 
    build on a separate host.
    - Add sample S3 policy to restrict bucket privileges.
- Packaging : 
  + Explicitly requires all perl deps
  + Define make_build for 42.3 compilation
Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) accepted request 612625 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 13)
- Urgent fix : add perl as BuildRequires and Requires to force
  presence of libperl.so : Otherwise pgbackrest binary can't find
  it
- Spec : use %make_build macros
Martin Pluskal's avatar Martin Pluskal (pluskalm) accepted request 611527 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 12)
- Update release 2.03 version
  + Bug Fixes:
    - Fix potential buffer overrun in error message handling.
    - Fix archive write lock being taken for the synchronous 
      archive-get command.
  + Improvements:
    - Embed exported C functions and Perl modules directly into 
      the pgBackRest executable.
    - Use time_t instead of __time_t for better portability.
    - Print total runtime in milliseconds at command end.
Martin Pluskal's avatar Martin Pluskal (pluskalm) accepted request 606763 from Bruno Friedmann's avatar Bruno Friedmann (bruno_friedmann) (revision 11)
- Update to bugfix & improvement 2.02 version
  Parallel Asynchronous Archive Get and Configuration Includes
  Released May 6, 2018
- Changes of previous 2.01 version from March 6th 2018
- Packaging : 
  + Use make install (now fixed upstream) for bin

old: server:database:postgresql/pgbackrest
new: home:bruno_friedmann:branches:server:database:postgresql/pgbackrest rev None
Index: pgbackrest.changes
===================================================================
--- pgbackrest.changes (revision 10)
+++ pgbackrest.changes (revision 3)
@@ -1,4 +1,91 @@
 -------------------------------------------------------------------
+Thu May 10 10:12:23 UTC 2018 - bruno@ioda-net.ch
+
+- Update to bugfix & improvement 2.02 version
+  Parallel Asynchronous Archive Get and Configuration Includes
+  Released May 6, 2018
+  + Bug Fixes:
+    - Fix directory syncs running recursively when only the 
+      specified directory should be synced.
+    - Fix archive-copy throwing "path not found" error for incr/diff
+      backups.
+    - Fix failure in manifest build when two or more files in PGDATA
+      are linked to the same directory.
+    - Fix delta restore failing when a linked file is missing.
+    - Fix rendering of key/value and list options in help.
+  + Features:
+    - Add asynchronous, parallel archive-get. This feature maintains 
+      a queue of WAL segments to help reduce latency when PostgreSQL
+      requests a WAL segment with restore_command.
+    - Add support for additional pgBackRest configuration files in the
+      directory specified by the --config-include-path option. 
+      Add --config-path option for overriding the default base path 
+      of the --config and --config-include-path option.
+    - Add repo-s3-token option to allow temporary credentials tokens
+      to be configured. pgBackRest currently has no way to request new
+      credentials so the entire command (e.g. backup, restore) must 
+      complete before the credentials expire.
+  + Improvements:
+    - Update the archive-push-queue-max, manifest-save-threshold,
+      and buffer-size options to accept values in KB, MB, GB, TB, PB
+      where the multiplier is a power of 1024.
+    - Make backup/restore path sync more efficient. Scanning the 
+      entire directory can be very expensive if there are a lot of 
+      small tables. The backup manifest contains the path list so use
+      it to perform syncs instead of scanning the backup/restore path
+    - Show command parameters as well as command options in initial 
+      info log message.
+    - Rename archive-queue-max option to archive-push-queue-max to 
+      avoid confusion with the new archive-get-queue-max option. 
+      The old option name will continue to be accepted.
+  + Documentation Bug Fixes:
+    - Update docs with 32-bit support and caveats. 
+      32-bit support was added in v1.26.
+  + Documentation Improvements:
+    - Add monitoring examples using PostgreSQL and jq.
+    - Add example of command section usage to archiving configuration.
+    - Remove documentation info --output=json as experimental.
+    - Update out-of-date description for the spool-path option.
+  + Test Suite Features:
+    - Use lcov for C unit test coverage reporting. Switch from 
+      Devel::Cover because it would not report on branch coverage 
+      for reports converted from gcov. Incomplete branch coverage
+      for a module now generates an error. Coverage of unit tests 
+      is not displayed in the report unless they are incomplete for
+      either statement or branch coverage. 
+- Changes of previous 2.01 version from March 6th 2018
+  + Bug Fixes:
+   - Fix --target-action and --recovery-option options being reported
+     as invalid when restoring with --type=immediate.
+   - Immediately error when a secure option (e.g. repo1-s3-key) is 
+     passed on the command line. Since pgBackRest would not pass 
+     secure options on to sub-processes an obscure error was thrown.
+     The new error is much clearer and provides hints about how to fix
+     the problem. Update command documentation to omit secure options 
+     that cannot be specified on the command-line.
+   - Fix issue passing --no-config to embedded Perl.
+   - Fix issue where specifying log-level-stderr > warn would cause a 
+     local/remote process to error on exit due to output found on 
+     stderr when none was expected. The max value for a local/remote
+     process is now error.
+   - Fix manifest test in the check command when tablespaces are 
+     present.
+  + Improvements:
+   - Error when multiple arguments are set in the config file for an
+     option that does not accept multiple arguments.
+   - Remove extraneous sudo commands from src/Makefile.
+  + Documentation Improvements:
+   - Show index in examples for indexed options, i.e. repo-*, pg-*.
+   - Simplify table of contents on command page by only listing
+     commands.
+   - Remove references to the C library being optional.
+  + Test Suite Features:
+   - Add CentOS/RHEL package builds.
+   - Use clang for static code analysis. Nothing found initially 
+     except for some functions that should have been marked
+     __noreturn__.
+
+-------------------------------------------------------------------
 Fri Mar  9 15:16:24 UTC 2018 - bruno@ioda-net.ch
 
 - Packaging : 
@@ -36,6 +123,8 @@
     improve consistency. repo-* options are now indexed although 
     currently only one is allowed.
     ** This imply you need to revisit your pgbackrest.conf **
+- Packaging : 
+  + Use make install (now fixed upstream) for bin
  
 -------------------------------------------------------------------
 Sun Feb  4 17:14:16 UTC 2018 - bruno@ioda-net.ch
Index: pgbackrest.spec
===================================================================
--- pgbackrest.spec (revision 10)
+++ pgbackrest.spec (revision 3)
@@ -18,7 +18,7 @@
 
 Name:           pgbackrest
 # Nobody can stop upstream to be too creative !
-Version:        2.00
+Version:        2.02
 Release:        0
 Summary:        Reliable PostgreSQL Backup & Restore
 License:        MIT
@@ -53,6 +53,7 @@
 %setup -q -n %{name}-release-%{version}
 
 %build
+#TODO upstream doesn't care about RPM_OPT_FLAGS
 pushd src
 make V=1 %{?_smp_mflags}
 popd
@@ -70,9 +71,7 @@
 install -D -d -m 0755 %{buildroot}%{_sysconfdir}
 install %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}.conf
 cp -a lib/* %{buildroot}%{perl_vendorlib}/
-# Upstream makefile is nonsense sudo so use install
-# make install -C src DESTDIR=%%{buildroot}
-install -m 0755 src/%{name} %{buildroot}%{_bindir}/%{name}
+make install -C src DESTDIR=%{buildroot}
 make pure_vendor_install -C libc DESTDIR=%{buildroot}
 %perl_process_packlist
 %perl_gen_filelist
Index: 2.02.tar.gz
===================================================================
Binary file 2.02.tar.gz (revision 3) added
Index: 2.00.tar.gz
===================================================================
Binary file 2.00.tar.gz (revision 10) deleted
Displaying revisions 41 - 60 of 70
openSUSE Build Service is sponsored by