Re: Improve TAP tests of pg_upgrade for cross-version tests

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Improve TAP tests of pg_upgrade for cross-version tests
Дата
Msg-id YuTdzCf0pvuqVlYY@paquier.xyz
обсуждение исходный текст
Ответ на Re: Improve TAP tests of pg_upgrade for cross-version tests  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: Improve TAP tests of pg_upgrade for cross-version tests  ("Anton A. Melnikov" <aamelnikov@inbox.ru>)
Список pgsql-hackers
On Fri, Jul 29, 2022 at 04:15:26PM -0500, Justin Pryzby wrote:
> This was using the old psql rather than the new one.
> Before v10, psql didn't have \if.

        # Note that upgrade_adapt.sql from the new version is used, to
    # cope with an upgrade to this version.
-       $oldnode->command_ok(
+       $newnode->command_ok(
                [
-                       'psql', '-X',
+                       "$newbindir/psql", '-X',

Yeah, you are right here that this psql command should use the one
from the new cluster and connect to the old cluster.  There is no
point in adding $newbindir though as Cluster::_get_env would enforce
PATH to find the correct binary.  I'll look at that in details later.
--
Michael

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Support for grabbing multiple consecutive values with nextval()
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Allow file inclusion in pg_hba and pg_ident files