Code Monkey home page Code Monkey logo

Comments (4)

jkatz avatar jkatz commented on July 18, 2024 1

@FrankyCTY Do you have jit set to on? (SHOW jit;)? Try disabling it and see if it fixes the query (SET jit to off; in the same session).

from pgvector.

tureba avatar tureba commented on July 18, 2024 1

May I know how jit causing problem? Because I will be looking into if it will be the same problem for our managed database (Google cloud sql) as it seems also have jit set to on.

Likely a packaging issue on your side. You might have these sorts of errors if the bitcode file is unreadable for any reason or corrupted, or if the extension was built with a newer clang version than the server, leading to newer bitcode files to be attempted to be read the older libllvm.so that the server is linked against.

from pgvector.

FrankyCTY avatar FrankyCTY commented on July 18, 2024

@FrankyCTY Do you have jit set to on? (SHOW jit;)? Try disabling it and see if it fixes the query (SET jit to off; in the same session).

Thanks for the reply.

I am a bit new to postgres, and I have ran SET jit to off; and ensure SHOW jit; return off afterwards in my postgres docker instance's database, and it didn't work.

Then I tried to update the parameter in postgresql.conf to set the jit to off, and related the conf by running SELECT pg_reload_conf();. Afterwards the problem is resolved. Maybe I should have reloaded the conf in the above attempt.

May I know how jit causing problem? Because I will be looking into if it will be the same problem for our managed database (Google cloud sql) as it seems also have jit set to on. (Update: Seems like Cloud sql does not support IIVM anyway so the paramter should be ignored. https://cloud.google.com/sql/docs/postgres/features#:~:text=Low%2DLevel%20Virtual%20Machine%20(LLVM)%20Just%2Din%2DTime%20(JIT)%20compilation.)

Thanks a lot, I appreciate that.

Directly set jit to off within the database session

local-console=# SHOW jit;
 jit
-----
 on
(1 row)

### Setting `jit` to off within the database instance
local-console=# set jit to off;
SET
local-console=# SHOW jit;
 jit
-----
 off
(1 row)

Updating the postgresql.conf to set jit to off then reload the config

sed -i 's/^#jit = on.*$/jit = off/' ./postgresql.conf

You are now connected to database "local-console" as user "postgres".
local-console=# SELECT pg_reload_conf();
 pg_reload_conf
----------------
 t
(1 row)

local-console=# show jit;
 jit
-----
 off
(1 row)

from pgvector.

FrankyCTY avatar FrankyCTY commented on July 18, 2024

Thanks guys, closing the issue now 💯

from pgvector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.