Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVfEE-0001L1-G1 for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 15:41:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVfEC-0005H2-Mx for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 15:41:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVfEC-0005Gs-Et for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 15:41:00 +0000 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fVfE9-0003zU-Sh for pgsql-general@postgresql.org; Wed, 20 Jun 2018 15:41:00 +0000 Received: by mail-qt0-x243.google.com with SMTP id a18-v6so5842qtj.4 for ; Wed, 20 Jun 2018 08:40:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+PFtBmHsCu9cEQ2U9xKtpoRy860v7oEFNj2Qv1l4XAo=; b=JheTO5gTPa8BT+QRIM2HsEWoWiUiPegdRXtf4ihEivfs0uLqkNu/9eqtJjQuOd4YXi /pj+KH+cZ8nSSEwvF1QLJaxlKtsF55KLWSRmn8XPf6lPzgMn0F+WeH+ZCiCebrCa/aik 0V99Rn10TTjs9NF3cB2YBBFfHso7q2lJN12v53ZdReDLdanb8R8b+cAzX0mWKbiBQwLn aXeU0gkLA/aJU5UBXMkvmfRipSYyzZ6i8fIG8ZYfk1Z5VsDi9WHboW43U6oV5Hy0kBFP OzuguMtkH6nl6gOXygAByMMDSBTmQ0qTruKJbUUb502itq2gOTu2zOaZfjhOOwhS6/QE b/hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+PFtBmHsCu9cEQ2U9xKtpoRy860v7oEFNj2Qv1l4XAo=; b=kbdBuOVZZDvDUhp86oieLO2eB8bYVzaeAO4v5/6FlclruR7Vz0/pF6J3ZU3oFztzUc kkXV8JQd/Yo+hX9IjIEI30u3gfXV1Dgz/ZdhwmxDnGsxxybYK5mGQjGUaJCktl7nsyth 6vIfQw2jb6EYP5voxpu0Dgg7Y7uFVu2Xu5FJVNXFjl3V+ZDvPerrgHQ60fdmq1j+N0y1 7LyPPXli+FUayyhsV4T/mAdHGEEUAb2vilLhlaLDo3sNCPfY+PoeNIqznMh4NwrzmBao iAVdTCkX6aNZNZb7m201Tlsm1W54eQO40wqs2ipl9nLjraLfbQSZwvz/IAls2ekZxz42 l2zw== X-Gm-Message-State: APt69E1sJ8VU5l6TVesmxIySamkhy4sFB+35HNYKDZ2S23xKDIoI4eqX GYWThVh7Vu2LdPkPa92Kky8= X-Google-Smtp-Source: ADUXVKIK6Z5nHqE+b+Ipg9hRoWsO5231YTX8MsL8HZZPzDGMn3be7zczwfZ6Vvm0mcKZcuwx1Ky3sA== X-Received: by 2002:a0c:e401:: with SMTP id o1-v6mr18797017qvl.66.1529509255246; Wed, 20 Jun 2018 08:40:55 -0700 (PDT) Received: from [192.168.213.53] ([38.142.23.50]) by smtp.gmail.com with ESMTPSA id p70-v6sm1747506qke.26.2018.06.20.08.40.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jun 2018 08:40:54 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: tsvector field length limitation From: Jonathan Marks In-Reply-To: <5779.1529506144@sss.pgh.pa.us> Date: Wed, 20 Jun 2018 11:40:53 -0400 Cc: pgsql-general@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <09ECA82E-C221-4D79-B2FC-5493F330B6EB@gmail.com> References: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com> <5779.1529506144@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3445.5.20) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk What if we just didn=E2=80=99t use positional arguments at all? I.e. we = just populate the tsvector with lexemes only? > On Jun 20, 2018, at 10:49 AM, Tom Lane wrote: >=20 > Jonathan Marks writes: >> ... we run into the max tsvector length requirement "The length of a = tsvector (lexemes + positions) must be less than 1 megabyte=E2=80=9D >=20 >> Is there any way to disable or increase that limit in Postgres 10.3? >=20 > No; it's forced by the representation used for tsvector, which stores > lexeme offsets in 20-bit fields (cf WordEntry in > src/include/tsearch/ts_type.h). Perhaps that was short-sighted but > I don't foresee it changing anytime soon. You'd more or less need > a whole new datatype ("bigtsvector"?) to make it happen. >=20 > regards, tom lane