Re: Error when setting default_text_search_config

Erik Wienhold <ewie@ewie.name>

From: Erik Wienhold <ewie@ewie.name>
To: Jeff Davis <pgsql@j-davis.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Murat Efendioğlu <mrtdmrts001@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2024-10-08T01:03:00Z
Lists: pgsql-bugs
On 2024-10-06 23:51 +0200, Jeff Davis wrote:
> On Sun, 2024-10-06 at 14:39 -0400, Tom Lane wrote:
> > I suppose we could just move the InitializeSearchPath call up
> > a bit (the comments in postinit.c are misleading about what it
> > actually does), but I wonder whether the cache-is-valid assumptions
> > in namespace.c ought to be rethought.  It seems unduly fragile
> > as-is.
> 
> I attached a patch which fixes the observed problem and is hopefully
> more robust to similar issues.

WFM.  The regression tests pass and the segfault no longer occurs.

-- 
Erik