Re: how to run encoding-dependent tests by default

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: how to run encoding-dependent tests by default
Дата
Msg-id 4be39f66-8adc-a10f-6d2c-1ab35f2953a1@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: how to run encoding-dependent tests by default  (Andres Freund <andres@anarazel.de>)
Ответы Re: how to run encoding-dependent tests by default  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-hackers
On 2019-06-17 18:39, Andres Freund wrote:
> Basically something like:
> 
> \gset SELECT my_encodings_are_compatible() AS compatible
> \if :compatible
> test;
> contents;
> \endif

Cool, that works out quite well.  See attached patch.  I flipped the
logic around to make it \quit if not compatible.  That way the
alternative expected file is shorter and doesn't need to be updated all
the time.  But it gets the job done either way.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: James Coleman
Дата:
Сообщение: Misleading comment in tuplesort_set_bound
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: Choosing values for multivariate MCV lists