-
-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when creating an index on MacOS #1107
Comments
Hey @boris-glumpler! Could you provide more details on your setup? macOS version, arch, Postgres version you're installing in, etc.? Anything to help us reproduce will help fix it faster for you. |
Yup, sorry, here it is:
|
Could you please provide full reproduction steps? From compilation to the query that fails? |
Ok, so I just started again with a fresh install of Postgres and ran through these commands:
That all ended with a success message:
I then added After that I just created the extension
This then resulted in this error:
|
I just ran |
Are you able to share part of the data you are inserting? |
I haven't inserted anything yet. To test it out I just migrated the users table and its still empty. |
@boris-glumpler Can you try to create an index with the mock data that we supply? CALL paradedb.create_bm25_test_table();
CALL paradedb.create_bm25(
schema_name => 'paradedb',
index_name => 'bm25_test_table',
table_name => 'bm25_test_table',
key_field => 'id',
text_fields => '{description: {}}'
);
SELECT * FROM bm25_test_table.search('description:shoes'); |
The test table was generated just fine, but trying to create an index caused the same error
|
Thanks. Can you confirm that process |
Please also enable postgres logging ( |
Yup, it's the same message. Here's the log output:
|
Since you're installing from source, we have an opportunity to poke around the source code too. I'd do this myself if I could reproduce, but I've never seen your error before. In
That would help isolate whether something is going wrong with Tantivy, or whether something is wrong with the communication with the insert worker. |
When you're reloading the extension, make sure to DROP EXTENSION and CREATE extension again after you run |
I'm getting the same error message after recompiling the extension. |
Thanks. I meant to suggest before... could you add a logging statement with
Then in your postgres logs, you can make sure the logging statement shows up. Sorry for the oversight. |
The error is still the same. The log message does not show up in the logs. I have been getting compiler warnings about unreachable code, tho, and did drop/create the extension. |
I just upgraded to v0.7.0 and creating an index is working now. |
I still get an error, tho, when I want to drop an index. |
And trying to create another index now gives me the following error:
|
This is an odd error. Can you confirm if you're able to create an index and write data to it? Can you try creating the index, inserting some rows, and then deleting some rows? |
Can't create another index now, nope. I keep getting the above |
@boris-glumpler Could you DROP EXTENSION and start from scratch? I also noticed you compiled from scratch using |
I used
|
@boris-glumpler We've fixed this, apologies. We were missing some SQL commands in our upgrade scripts. I would recommend you delete all mentions of |
Great, thanks! I'll be traveling the next couple days and will give it a go then and report back! |
Hello,
I've compiled and installed the
pg_search
extension on my Mac and added it to a database. But when I try to create an index I keep getting this error:And when I check
http://0.0.0.0:49157/
, I'm getting the following message:This is the index, I'm trying to create:
I've reinstalled
pg_search
a couple times now, but the issue persists.I'd appreciate some pointers on how I can fix this. Cheers!
The text was updated successfully, but these errors were encountered: