Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovgjM-00076s-VF for pgsql-general@arkaria.postgresql.org; Thu, 17 Nov 2022 15:23:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ovgjL-0006zP-P5 for pgsql-general@arkaria.postgresql.org; Thu, 17 Nov 2022 15:23:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovgjL-0006zF-AC for pgsql-general@lists.postgresql.org; Thu, 17 Nov 2022 15:23:07 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ovgjI-0002D6-Eh for pgsql-general@lists.postgresql.org; Thu, 17 Nov 2022 15:23:06 +0000 Received: by mail-ed1-x531.google.com with SMTP id z20so1540913edc.13 for ; Thu, 17 Nov 2022 07:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=8ZTZBsVGZ6KtfnTHe0xjnzRsZ7DtjWCMGQe8O1OQwQo=; b=o2jlYkWaX5DOT3adAZuxzZz3FMTnbRoG3Yv68M8OLIINODfgeWCEZs9tO59w2ewSMs /WvMHqvT4JeKn2ATLfyh6+X5g+HFigi+L+SX9ux47xcRTYPuxnw0hcVpEmISXqf5+Gcx 9wE7arzgQkfKFr2a3ys9y+oC326sXn24o7iU83ouZuDMRxM+JTzMUitLfJ1fTXQiiYCE Sn00sDcUxlqksCLXlpQcFhDB6EdyRzvlSqzANrqhuvCb+msXkWCf2fW+lHgqMr6jPoWT eZtoGk00WCAY2Oatm3yyKsLSRJJlFc/Br6zJcI9ehEnTb2xlPDPJywYnNxS83061DUXK Qu4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=8ZTZBsVGZ6KtfnTHe0xjnzRsZ7DtjWCMGQe8O1OQwQo=; b=iWKoHScRBXvrte+T52rr/Lrq8JsAJmf1nHBQGDMdtIxY0tWDeDR+K2OxSjFacGtTcz Zzi27tDBX/bFL51pkG9Ahgox0ODSj/wqQm9rbS/KaFH4TBMLlTMloDVcb63sVstn/hrz 7JqPbqd3a5tuB4Fz8Y5pMQnyZpgjzunq0K2dBxcX+g8yoy+XDRXWn3w5zdEYGJk4a38r srXNt7NI473AWwlm8UaIzjR1G0caXbn6ozzTF4oA9ts0KnuRf/CXCakPhDVoSMYHiM2F FDP7zAqcXTrVvxv2AwTOiCjbvPUlNlfRq7IVzuDSsEk2io6BtiNcvCQ0AUIv8W/gT05q e2Rg== X-Gm-Message-State: ANoB5plk3SpY1i8WiaCsJYq8fZXl+F6vpqjUjv6EgDirhPtFwu+bElUS /SB6QWi3h4B+6/mb5K5KUMWHyA== X-Google-Smtp-Source: AA0mqf4sG3njN/8EF7ZQr5Yrwqf+CXf1HqPw5pfqcYTRGJTlkOCGb+Em8R0nDzTgWV/DsqIbLSislA== X-Received: by 2002:a05:6402:3886:b0:463:ab08:2bc6 with SMTP id fd6-20020a056402388600b00463ab082bc6mr2584879edb.143.1668698583485; Thu, 17 Nov 2022 07:23:03 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:b47b:e706:88d7:ceb1:a099]) by smtp.gmail.com with ESMTPSA id up30-20020a170907cc9e00b007ae0fde7a9asm475978ejc.201.2022.11.17.07.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 07:23:03 -0800 (PST) Message-ID: Subject: Re: Configure StopWords in full text search without a configuration file? From: Laurenz Albe To: Florian Fuchs , pgsql-general@lists.postgresql.org Date: Thu, 17 Nov 2022 16:23:02 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.4 (3.42.4-2.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2022-11-17 at 14:30 +0100, Florian Fuchs wrote: > is it possible to configure a StopWord list without a file in the > configuration-filesystem of postgres? > (StopWord: https://www.postgresql.org/docs/current/textsearch-dictionaries.html#TEXTSEARCH-STOPWORDS) No, this is impossible. > By default, the StopWord files are stored at  $SHAREDIR/tsearch_data/*.stop - I don't > have access to the filesystem, so I need to configure custom StopWords > within my database/schema (SQL-Access). > > Is this somehow possible? If you have superuser access or have a user that is a member of "pg_write_server_files", you could write the stopword file via SQL. Other than that, I see no possibility. Yours, Laurenz Albe