Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZppEz-0007y9-NN for pgsql-bugs@arkaria.postgresql.org; Sat, 24 Oct 2015 03:11:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZppEz-00038S-30 for pgsql-bugs@arkaria.postgresql.org; Sat, 24 Oct 2015 03:11:33 +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.84) (envelope-from ) id 1Zpj4J-00072Z-1O for pgsql-bugs@postgresql.org; Fri, 23 Oct 2015 20:36:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zpj4F-00047u-WC for pgsql-bugs@postgresql.org; Fri, 23 Oct 2015 20:36:06 +0000 MIME-Version: 1.0 Subject: BUG #13711: Error creating index on ltree column To: pgsql-bugs@postgresql.org From: cstdenis@ctgameinfo.com Date: Fri, 23 Oct 2015 20:35:03 +0000 Message-ID: <20151023203503.3021.6784@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" 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 The following bug has been logged on the website: Bug reference: 13711 Logged by: Cstdenis Email address: cstdenis@ctgameinfo.com PostgreSQL version: 9.2.13 Operating system: FreeBSD 10.1 Description: CREATE INDEX user_comments_id_tree ON user_comments USING gist (id_tree); ERROR: failed to add item to index page in "user_comments_id_tree" SQL state: XX000 I have another database with identical schema with no problems, but when I try to restore the backup of this one on a new server the restore has this error with 2 indexes on this column. Some info about the data: fanart_central=# Select count(id_tree) from user_comments; count --------- 6650726 (1 row) fanart_central=# Select max(nlevel(id_tree)) from user_comments; max ----- 183 (1 row) fanart_central=# Select max(bit_length(ltree2text(id_tree))), max(char_length(ltree2text(id_tree))) from user_comments; max | max -------+------ 11704 | 1463 (1 row) Table definition: CREATE TABLE user_comments ( comment_id serial NOT NULL, -- Inherited from table base_comments: id_tree ltree NOT NULL DEFAULT ''::ltree ) INHERITS (base_comments) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs