0

I am converting an Oracle 11G DB to PostgreSQL v11 DB.

I am super new to the whole database thing and I have encountered a query using index type of ctxsys.context to create an index.

I have no idea what ctxsys index type is doing as I tried reading oracle documents related to it but got confused.

I wish to know what exactly this indextype does and

Is there any equivalent solution in PostgreSQL ?

Below is the query for all of your references,

CREATE INDEX IDX1 ON TBL1(BLOB Column) indextype is ctxsys.context;
CREATE INDEX IDX2 ON TBL2(BLOB Column) indextype is ctxsys.context;

I am told you can't index bytea columns (which is the equivalent to blob) in Postgres. Can I move only the lob column to a user defined tablespace ?

Paul White
95.3k30 gold badges439 silver badges689 bronze badges
asked Feb 5, 2019 at 7:19
0

1 Answer 1

1

Oracle text search filter is capable of automatically parsing non-plain text documents, such as MS Word or PDF, while Postgres' text search can only handle plain text documents. You'll have to convert whatever is stored in your BLOB column to plain text before loading those data into a Postgres TEXT column, then build the Postgres text search index on that.

answered Feb 27, 2019 at 11:55

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.