Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxydA-00DaJw-N2 for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Oct 2024 01:03:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sxyd9-000ODw-5e for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Oct 2024 01:03:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxyd8-000ODo-MQ for pgsql-bugs@lists.postgresql.org; Tue, 08 Oct 2024 01:03:14 +0000 Received: from mout-u-107.mailbox.org ([2001:67c:2050:101:465::107]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxyd2-0036uc-PS for pgsql-bugs@lists.postgresql.org; Tue, 08 Oct 2024 01:03:14 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4XMyS65gWmz9t1V; Tue, 8 Oct 2024 03:03:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ewie.name; s=MBO0001; t=1728349382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rSCAP2XxeJ6FqDiKPBk/8kenQwmqpoKlZJPWBdrnyfY=; b=UBY0a674skG9OB/bFOaCxPxgeV7e+TtbEj6hBP+eii956UMFMvml7/ofr91LjerXcjgN1Z dQsrIWSnIr9kGFm0BnxnxIlskQ/mSN0lM+RAXmzrHhCdmWLov/+YDioPDPHWpvWNbkZAns /dzWQrVbVXFK37tm3nDMKaYUGxoQ/4LNm1o28+0qdIiC4OF3J2sWFilQXFUj4cSffOMYkf akDlaNa2O+XwM5fVlkcBXFv9fefwRbRvH4TlrH/AXHmdUYM+J2pfafMfWxiIXsKpBtVRRH EImXSg4P4T/5NBssWVHcz5HyYimshxgztyIL5BZ5Mux5BQO+jbWj5CTvGo+uoA== Date: Tue, 8 Oct 2024 03:03:00 +0200 From: Erik Wienhold To: Jeff Davis Cc: Tom Lane , Murat =?utf-8?Q?Efendio=C4=9Flu?= , pgsql-bugs@lists.postgresql.org Subject: Re: Error when setting default_text_search_config Message-ID: References: <26c28873-85ca-4360-a5e9-1cc691a05451@ewie.name> <9c480df9-720b-4419-85c6-09113f5d6f0a@ewie.name> <1381066.1728239990@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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