]> granicus.if.org Git - postgresql/commit
Improve readability of some tests in strings.sql
authorMichael Paquier <michael@paquier.xyz>
Thu, 4 Apr 2019 01:24:56 +0000 (10:24 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 4 Apr 2019 01:24:56 +0000 (10:24 +0900)
commit92c76021aed47daa61afd5c7d6f8201382dee203
treec5ab483ae6d5d4b7471103c89f97469375b2fa17
parentb73c3a11963c8bb783993cfffabb09f558f86e37
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
src/test/regress/expected/strings.out
src/test/regress/sql/strings.sql