Re: pg_dump multi VALUES INSERT

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: pg_dump multi VALUES INSERT
Дата
Msg-id CAKJS1f-vF0LVfsRnCCaiLe9KO_cD+u-3dBaxXueAU5ak1wHO1g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_dump multi VALUES INSERT  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
On Thu, 24 Jan 2019 at 04:45, Fabien COELHO <coelho@cri.ensmp.fr> wrote:

> I still do not understand the need for another variable.
>
>    int ninserts = 0; // default is to use copy
>    while (getopt...)
>    {
>      switch (...) {
>        case "--inserts":
>          if (ninserts == 0) ninserts = 1;
>          break;
>        case "--rows-per-insert":
>          ninserts = arg_value;
>          checks...
>          break;
>       ...

I didn't think of that. Attached is a version that changes it to work
along those lines.

-- 
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Protect syscache from bloating with negative cache entries
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Thread-unsafe coding in ecpg