postgresql/src
Stephen Frost 4d0e994eed Add support for partial TOAST decompression
When asked for a slice of a TOAST entry, decompress enough to return the
slice instead of decompressing the entire object.

For use cases where the slice is at, or near, the beginning of the entry,
this avoids a lot of unnecessary decompression work.

This changes the signature of pglz_decompress() by adding a boolean to
indicate if it's ok for the call to finish before consuming all of the
source or destination buffers.

Author: Paul Ramsey
Reviewed-By: Rafia Sabih, Darafei Praliaskouski, Regina Obe
Discussion: https://postgr.es/m/CACowWR07EDm7Y4m2kbhN_jnys%3DBBf9A6768RyQdKm_%3DNpkcaWg%40mail.gmail.com
2019-04-02 12:35:32 -04:00
..
backend Add support for partial TOAST decompression 2019-04-02 12:35:32 -04:00
bin Add progress reporting to pg_checksums 2019-04-02 10:58:07 +09:00
common Add support for partial TOAST decompression 2019-04-02 12:35:32 -04:00
fe_utils Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
include Add support for partial TOAST decompression 2019-04-02 12:35:32 -04:00
interfaces Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
makefiles Move port-specific parts of with_temp_install to port makefile. 2019-02-04 18:54:56 +00:00
pl Generated columns 2019-03-30 08:15:57 +01:00
port Fix error handling of readdir() port implementation on first file lookup 2019-03-04 09:49:06 +09:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Perform RLS subquery checks as the right user when going via a view. 2019-04-02 08:13:59 +01:00
timezone More unconstify use 2019-02-13 11:50:16 +01:00
tools Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00
tutorial SQL comment: remove extra word in heading comment 2019-01-25 18:57:21 -05:00
.gitignore
DEVELOPERS
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Revert attempts to use POPCNT etc instructions 2019-02-15 16:32:30 -03:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk Unified logging system for command-line programs 2019-04-01 20:01:35 +02:00