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 1jMbRh-0002TE-S7 for pgsql-committers@arkaria.postgresql.org; Thu, 09 Apr 2020 17:58:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jMbRe-0005Sn-OJ for pgsql-committers@arkaria.postgresql.org; Thu, 09 Apr 2020 17:58:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMbRe-0005O7-8e for pgsql-committers@lists.postgresql.org; Thu, 09 Apr 2020 17:58:30 +0000 Received: from lb3-smtp-cloud8.xs4all.net ([194.109.24.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jMbRb-0004cA-2Z for pgsql-committers@lists.postgresql.org; Thu, 09 Apr 2020 17:58:29 +0000 Received: from webmailclassic.xs4all.nl ([IPv6:2001:888:0:22:194:109:20:204]) by smtp-cloud8.xs4all.net with ESMTPA id MbRWj3tDRlKa1MbRWjqDSC; Thu, 09 Apr 2020 19:58:23 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s1; t=1586455103; bh=EFq0v3GcxO1MrmKPZf1r/l+bsolS10JXm87Xp4RJVjQ=; h=MIME-Version:Content-Type:Date:From:To:Subject:Message-ID:From: Subject; b=UBm6pB/RK0vYzeOzXnQz9BvZz6M+xm5U36U+PD/4ihnBtg1B53b19hlbhZVoKImfo Z6dvY6U6zLrFGvSG2ahf5jEoeQ/9FWrjxCRkH/pPdDF6nuG5HY4dxjU7RDuMGI9lfJ SYOqArkV6CoL9b/qOXooPoFyBRDttSBP9HzJJHo5L+viJoHNXJbIN52hQ6oMHitlKY t7wXw9b9I+qZgfHZH0LrX4F9iTRweZLLgq8a48kWgxU8nPPjrRkY0W7mSXhjffUtTK iw3GnsOzgZtpRcyjKPieT1uEJN8iJBECfO/q3SZ58w2H9ywwHuySTHxDE/8erzESdn 8QBHO/OiDmYug== Received: from 2001:983:39b6:1:3506:f966:367f:5fc4 by webmailclassic.xs4all.nl with HTTP (HTTP/1.1 POST); Thu, 09 Apr 2020 19:58:22 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 09 Apr 2020 19:58:22 +0200 From: Erik Rijkers To: Tom Lane Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Fix default text search parser's ts_headline code for phrase que In-Reply-To: References: Message-ID: <7fbf31d72d4cbe03d5b4d915c58ebd9e@xs4all.nl> X-Sender: er@xs4all.nl User-Agent: XS4ALL Webmail X-CMAE-Envelope: MS4wfI2NN8oRhVu5OrXJOfLN1FtgA03SqqkmRkCi+p9ZbtI0FPTFm36Ign9c7J9l5FIWPJwTBK3IlS17d4n6/3vTUB8XUtmdkvZBF0Iz8nsHAYJNCKRr2YgC 0kxCRiWoUED3tYGRhgDU3ldnZSOo9YrQRSy5gzeAv7pgePQDh4qNVD9JohNF+kkYUzluJ1Yrrq81ITD5EppJM4kPa+nJiXr/XWCGd3LZT3KWC74u37OSYm4U xcPhLPxURGhqUG0oefSqkrzXhP/PUJ8eLbayYKe+FUk= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-04-09 19:19, Tom Lane wrote: > Fix default text search parser's ts_headline code for phrase queries. > > src/backend/tsearch/wparser_def.c | 173 > +++++++++++++++++++--------------- > src/test/regress/expected/tsearch.out | 43 ++++++--- > src/test/regress/sql/tsearch.sql | 11 +++ > 3 files changed, 141 insertions(+), 86 deletions(-) Hi, I get compiler warning/note from gcc 9.3.0 (on debian stretch): wparser_def.c: In function ‘prsd_headline’: wparser_def.c:2530:2: warning: ‘pose’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2530 | mark_fragment(prs, highlightall, bestb, beste); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wparser_def.c:2384:8: note: ‘pose’ was declared here 2384 | int pose, | ^~~~ I am not sure whether it is useful to report warnings/notes (I can see that these are not very important). There is quite a lot of traffic on postgres-lists already; please let me know if it's maybe better to only report 'real' errors. Thanks, Erik Rijkers