Closed 9072997 closed 3 years ago
I will be glad to receive from you any example reproducing this problem. I used the following script but there are no any warnings:
create table foo(pk bigint primary key, val bigint);
insert into foo values (generate_series(1,1000000), 0);
copy foo to '/tmp/foo.csv';
create table foo3(pk bigint, val bigint);
create index on foo3 using lsm3(pk);
copy foo3 from '/tmp/foo.csv';
May be you can modify this script or propose yours...
Here is an example based on my schema with fake data and with non-indexd columns removed:
Download and uncompress this file, or you can generate example data using this program in golang:
Set up the database like this:
Do either something like COPY pings FROM '/tmp/test-data.csv' DELIMITER ',' CSV;
in psql or pgadmin 4. You should see something like "WARNING: you don't own a lock of type RowExclusiveLock" on stderr or in the messages tab of pgadmin.
Please try new version
This resolved the issue. Thank you.
I have added several lsm3 indexes to a table and am now bulk-loading data in to it using
COPY t FROM STDIN
via psql. I am getting "WARNING: you don't own a lock of type RowExclusiveLock" 2-6 times per 100000 rows. The rows do get inserted, so this might be ignore-able?I just did the same bulk-load using btree indexes without the lsm3 extension loaded and I do not get the warnings.
I am on PostgreSQL 13.3 on Debian. If there is any additional information I can provide, let me know.