Re: Vacuum o/p with (full 1, parallel 0) option throwing an error

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error
Дата
Msg-id
20200409064426.GQ1606@paquier.xyz
Ответ на
Список
Дерево обсуждения
Vacuum o/p with (full 1, parallel 0) option throwing an error tushar <tushar.ahuja@enterprisedb.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Robert Haas <robertmhaas@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Mahendra Singh Thalor <mahi6run@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Robert Haas <robertmhaas@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Justin Pryzby <pryzby@telsasoft.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Mahendra Singh Thalor <mahi6run@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Justin Pryzby <pryzby@telsasoft.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Michael Paquier <michael@paquier.xyz>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Michael Paquier <michael@paquier.xyz>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Michael Paquier <michael@paquier.xyz>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Robert Haas <robertmhaas@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Justin Pryzby <pryzby@telsasoft.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Justin Pryzby <pryzby@telsasoft.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Justin Pryzby <pryzby@telsasoft.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Michael Paquier <michael@paquier.xyz>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Justin Pryzby <pryzby@telsasoft.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Amit Kapila <amit.kapila16@gmail.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
Re: Vacuum o/p with (full 1, parallel 0) option throwing an error Masahiko Sawada <masahiko.sawada@2ndquadrant.com>
On Thu, Apr 09, 2020 at 11:05:50AM +0530, Amit Kapila wrote:
> On Thu, Apr 9, 2020 at 7:07 AM Michael Paquier  wrote:
>>  I think that
>> this patch needs tests in sql/vacuum.sql.
> 
> We already have one test that is testing an invalid combination of
> PARALLEL and FULL option, not sure of adding more on similar lines is
> a good idea, but we can do that if it makes sense.  What more tests
> you have in mind which make sense here?

As you say, vacuum.sql includes this test:
VACUUM (PARALLEL 2, FULL TRUE) pvactst; -- error, cannot use both PARALLEL and FULL
ERROR:  cannot specify both FULL and PARALLEL options

But based on the discussion of this thread, it seems to me that we had
better stress more option combinations, particularly the two following
ones:
vacuum (full 0, parallel 1) foo;
vacuum (full 1, parallel 0) foo;

Without that, how do you make sure that the compatibility wanted does
not break again in the future?  As of HEAD, the first one passes and
the second one fails.  And as Tushar is telling us we want to 
handle both cases in a consistent way.
--
Michael
В списке pgsql-hackers по дате отправления
От: Etsuro Fujita
Дата:
От: Amit Kapila
Дата:
FAQ