pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: cstdenis@ctgameinfo.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13711: Error creating index on ltree column
Date: Fri, 23 Oct 2015 20:35:03 +0000
Message-ID: <20151023203503.3021.6784@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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,
<snip>
-- 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



Message-ID: <20151023203503.3021.6784@wrigleys.postgresql.org>
Permalink:  ../20151023203503.3021.6784@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20151023203503.3021.6784@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: cstdenis@ctgameinfo.com
  Subject: Re: BUG #13711: Error creating index on ltree column
  In-Reply-To: <20151023203503.3021.6784@wrigleys.postgresql.org>
  References: <20151023203503.3021.6784@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox