Re: unnecessary creation of FSM files during bootstrap mode

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: John Naylor <jcnaylor(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: unnecessary creation of FSM files during bootstrap mode
Date: 2019-01-12 02:15:18
Message-ID: CAA4eK1JZxE=BhMFV0i1z2VJqQn2bq9CcbWsQtDx7t5VB7A3Ndw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 11, 2019 at 8:01 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> writes:
> > On Fri, Jan 11, 2019 at 5:00 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> >> It's also possible that you just aren't exercising the cases where
> >> trouble occurs. In particular, noting this bit in InsertOneValue():
> >> OidOutputFunctionCall(typoutput, values[i]))));
>
> > I have tried initdb with --debug option (If I am not wrong, it runs
> > initdb under DEBUG5 mode) and didn't hit any problem after applying
> > the patch. Are you expecting that we might try to open pg_proc at
> > that place which can lead to the problem?
>
> Yes, I was concerned about regprocout in particular. It might be
> okay as long as we don't try to add any regproc columns to the
> BKI_BOOTSTRAP catalogs.
>

Okay, I think if we get such a requirement in the future, we might
want to restore the current behavior by selectively doing it for
non-FSM and or non-VM forks. I will commit the patch removing these
changes before committing the avoid fsm creation stuff [1] by John
which is still under review.

[1] - https://www.postgresql.org/message-id/CACPNZCuEijBJ9gq9jqjwvQeDB6%3Dig2egRzHhZDfTtRwhmPLVtw%40mail.gmail.com

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2019-01-12 02:53:14 Re: Ryu floating point output patch
Previous Message Michael Paquier 2019-01-12 01:17:27 Re: Remove all "INTERFACE ROUTINES" style comments