pgsql: Improve readability of some tests in strings.sql

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Improve readability of some tests in strings.sql
Дата
Msg-id E1hBrCh-0003he-NL@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/92c76021aed47daa61afd5c7d6f8201382dee203

Modified Files
--------------
src/test/regress/expected/strings.out | 14 ++++++++------
src/test/regress/sql/strings.sql      |  6 ++++--
2 files changed, 12 insertions(+), 8 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: pgsql: tableam: basic documentation.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Consistently test for in-use shared memory.