Re: pgsql: Make new strings more alike previously existing messages.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Make new strings more alike previously existing messages.
Дата
Msg-id 24097.1239663420@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Make new strings more alike previously existing messages.  (alvherre@postgresql.org (Alvaro Herrera))
Ответы Re: pgsql: Make new strings more alike previously existing messages.  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-committers
alvherre@postgresql.org (Alvaro Herrera) writes:
> Make new strings more alike previously existing messages.

This patch changed the meaning of one of the messages:

*************** main(int argc, char **argv)
*** 316,322 ****
      /* Can't do single-txn mode with multiple connections */
      if (opts->single_txn && opts->number_of_jobs > 1)
      {
!         fprintf(stderr, _("%s: cannot specify both --single-transaction and multiple jobs\n"),
                  progname);
          exit(1);
      }
--- 316,322 ----
      /* Can't do single-txn mode with multiple connections */
      if (opts->single_txn && opts->number_of_jobs > 1)
      {
!         fprintf(stderr, _("%s: options -1/--single-transaction and -j/--jobs cannot be used together\n"),
                  progname);
          exit(1);
      }

As the comment and the code itself show, "-j 1" works just fine with
--single-transaction.  The original wording reflected that, the new does
not.

Maybe this amount of imprecision is acceptable, but "make it look more
like the other messages" doesn't seem to me like enough justification.

            regards, tom lane

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

Предыдущее
От: alvherre@postgresql.org (Alvaro Herrera)
Дата:
Сообщение: pgsql: Make new strings more alike previously existing messages.
Следующее
От: alvherre@postgresql.org (Alvaro Herrera)
Дата:
Сообщение: pgsql: pg_restore -jN does not equate "multiple jobs", so partly revert