Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ts0m7-0002C1-42 for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jan 2013 00:41:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ts0m6-0007M9-1D for pgsql-bugs@arkaria.postgresql.org; Mon, 07 Jan 2013 00:41:10 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ts0m5-0007M4-EM for pgsql-bugs@postgresql.org; Mon, 07 Jan 2013 00:41:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ts0m3-0007j8-So for pgsql-bugs@postgresql.org; Mon, 07 Jan 2013 00:41:08 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r070f66p010273; Sun, 6 Jan 2013 19:41:06 -0500 (EST) From: Tom Lane To: davios@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7793: tsearch_data thesaurus size limit In-reply-to: References: Comments: In-reply-to davios@gmail.com message dated "Sun, 06 Jan 2013 16:23:55 +0000" Date: Sun, 06 Jan 2013 19:41:06 -0500 Message-ID: <10272.1357519266@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org davios@gmail.com writes: > [ thesaurus dictionary fails for more than 64K entries ] I see a whole bunch of uses of "uint16" in src/backend/tsearch/dict_thesaurus.c. It's not immediately clear which of these would need to be widened to support more entries, or what the storage cost of doing that would be. We probably should at least put in a range check so that you get a clean failure instead of a crash though. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs