Issue Details (XML | Word | Printable)

Key: CORE-6431
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Basil A. Sidorov
Votes: 1
Watchers: 4
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Server-side (de)compressor filters

Created: 27/Oct/20 04:12 AM   Updated: 27/Oct/20 08:31 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1 Initial

QA Status: No test


 Description  « Hide
Add ability automatic (de)compressor filter for backup (gbak) and dump (nbackup) on engine level via firebird.conf settings.
Motivation - universal (de)compression for services "by suffix".

New directives in firebird.conf:
FilterCompressor: type - string, value - suffix and compressor command line (.zst,"zstd -1q" and so on). Multiple directives allowed. Default value - None (no filter).
FilterDecompressor: type - sting, value - suffix and decompressor command line (.zst,"zstd -qd" and soon). Mulitple directives allowed. Default value - None (no filter).

Compressor filters not used for special name stdout and apply only for file with "known" suffix.
If input stream (from stdin or from file) not accepted "by suffix" (filter command return non-zero error code) and not accepted "without filter", engine may try all known decompressors (in some order).
If filter applied, engine must add message about filter into log.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 27/Oct/20 08:14 AM
Looks like it's time to think about compression plugins, usable where needed (wire compression, backup compression, etc.)