Improve readability of some tests in strings.sql

Michael Paquier <michael@paquier.xyz>

Commit: 92c76021aed47daa61afd5c7d6f8201382dee203
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-04-04T01:24:56Z
Releases: 12.0
Improve readability of some tests in strings.sql

c251336 has added some tests to check if a toast relation should be
empty or not, hardcoding the toast relation name when calling
pg_relation_size().  pg_class.reltoastrelid offers the same information,
so simplify the tests to use that.

Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/20190403065949.GH3298@paquier.xyz

Files

PathChange+/−
src/test/regress/expected/strings.out modified +8 −6
src/test/regress/sql/strings.sql modified +4 −2

Discussion