Fix portability issue in test indirect_toast
authorMichael Paquier <michael@paquier.xyz>
Mon, 7 Jun 2021 09:12:29 +0000 (18:12 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 7 Jun 2021 09:12:29 +0000 (18:12 +0900)
commit68a6d8a87006ba727d9662ec84c7a3d9de402df0
tree4c7501c0e349ce6a382f47fe19fbaa94e404bae7
parentbe57f21650d36449ec34a67b2d9af71126a663b3
Fix portability issue in test indirect_toast

When run on a server using default_toast_compression set to LZ4, this
test would fail because of a consistency issue with the order of the
tuples treated.  LZ4 causes one tuple to be stored inline instead of
getting externalized.  As the goal of this test is to check after data
stored externally, stick to pglz as the compression algorithm used, so
as all data of this test is stored the way it should.

Analyzed-by: Dilip Kumar
Discussion: https://postgr.es/m/YLrDWxJgM8WWMoCg@paquier.xyz
src/test/regress/expected/indirect_toast.out
src/test/regress/sql/indirect_toast.sql