That uses the same APIs that we're here and a fixed-size input buffer and a fixed-size output buffer, just as we have here, to compress a file. And it probably works, because otherwise it likely wouldn't be in the "examples" directory. And it sets autoFlush to 0.
Thanks, Robert. I have seen this example, and it is similar to what we have.
I went through each of the steps and appears that I have done it correctly.
I am still trying to debug and figure out where it is going wrong.
I am going to try hooking the pg_basebackup with the lz4 source and