Re: [HACKERS] Block level parallel vacuum

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>
Cc: Masahiko Sawada <masahiko(dot)sawada(at)2ndquadrant(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Mahendra Singh <mahi6run(at)gmail(dot)com>, Kyotaro HORIGUCHI <horiguchi(dot)kyotaro(at)lab(dot)ntt(dot)co(dot)jp>, Robert Haas <robertmhaas(at)gmail(dot)com>, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>, David Steele <david(at)pgmasters(dot)net>, Claudio Freire <klaussfreire(at)gmail(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Block level parallel vacuum
Date: 2019-12-03 09:03:54
Message-ID: CAA4eK1Kq8vhj-56Qu1+E5qnYZT5D6A6+qknUuZieyCMXoj+XBw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Dec 3, 2019 at 12:55 PM tushar <tushar(dot)ahuja(at)enterprisedb(dot)com>
wrote:

> On 11/27/19 11:13 PM, Masahiko Sawada wrote:
> > Thank you for reviewing this patch. All changes you made looks good to
> me.
> >
> > I thought I already have posted all v34 patches but didn't, sorry. So
> > I've attached v35 patch set that incorporated your changes and it
> > includes Dilip's patch for gist index (0001). These patches can be
> > applied on top of the current HEAD and make check should pass.
> > Regards,
> While doing testing of this feature against v35- patches ( minus 004) on
> Master ,
>

Thanks for doing the testing of these patches.

> getting crash when user connect to server using single mode and try to
> perform vacuum (parallel 1 ) o/p
>
> tushar(at)localhost bin]$ ./postgres --single -D data/ postgres
> 2019-12-03 12:49:26.967 +0530 [70300] LOG: database system was
> interrupted; last known up at 2019-12-03 12:48:51 +0530
> 2019-12-03 12:49:26.987 +0530 [70300] LOG: database system was not
> properly shut down; automatic recovery in progress
> 2019-12-03 12:49:26.990 +0530 [70300] LOG: invalid record length at
> 0/29F1638: wanted 24, got 0
> 2019-12-03 12:49:26.990 +0530 [70300] LOG: redo is not required
>
> PostgreSQL stand-alone backend 13devel
> backend>
> backend> vacuum full;
> backend> vacuum (parallel 1);
>

The parallel vacuum shouldn't be allowed via standalone backends as we
can't create DSM segments in that mode and similar is true for the parallel
query. It should internally proceed with a serial vacuum. I'll fix it in
the next version I am planning to post. BTW, it seems that the same
problem will be there for parallel create index.

--
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2019-12-03 09:10:57 Re: Update minimum SSL version
Previous Message Thomas Munro 2019-12-03 09:01:57 Re: BUG #15548: Unaccent does not remove combining diacritical characters