Re: Failure to create GiST on ltree column - Mailing list pgsql-hackers

From Victor Yegorov
Subject Re: Failure to create GiST on ltree column
Date
Msg-id CAGnEbohi_U30HH46FsT0tag69HKRvPX4u=EY_i2do2+WRVKvKw@mail.gmail.com
Whole thread Raw
In response to Re: Failure to create GiST on ltree column  (Justin Pryzby <pryzby@telsasoft.com>)
List pgsql-hackers
пн, 25 мая 2020 г. в 18:25, Justin Pryzby <pryzby@telsasoft.com>:
I wonder if/how that fails if you create the index before adding data:

CREATE TABLE test_path(path ltree);
CREATE INDEX ON test_path USING GIST(path);
INSERT INTO test_path SELECT * FROM comments.mp_comments;

Does that fail on a particular row ?

How many paths do you have and how long?  How big is the table?

Yes, it fails.

I got permission and created a partial dump of the data with:
CREATE TABLE lc AS SELECT id, path FROM comments.mp_comments WHERE length(path::text)>=500;

Attached. It is reproduces the error I get. One needs to create ltree extension first.

I understand, that issue most likely comes from the length of the ltree data stored in the columns.
But error is a bit misleading…


--
Victor Yegorov
Attachment

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: future pg+llvm compilation is broken
Next
From: Peter Eisentraut
Date:
Subject: Re: New 'pg' consolidated metacommand patch