Skip to content
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

index ix_records_contacts limited? #942

Open
pvgenuchten opened this issue Jan 17, 2024 · 1 comment
Open

index ix_records_contacts limited? #942

pvgenuchten opened this issue Jan 17, 2024 · 1 comment

Comments

@pvgenuchten
Copy link
Contributor

pvgenuchten commented Jan 17, 2024

Description

when inserting a record,i get this error:

ERROR: foo.xml not inserted: (psycopg2.errors.ProgramLimitExceeded) index row size 3896 exceeds btree version 4 maximum 2704 for index "ix_records_contacts"
DETAIL:  Index row references tuple (225,3) in relation "records".
HINT:  Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text indexing.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/base.py", line 1905, in _execute_context
    self.dialect.do_execute(
  File "/usr/local/lib/python3.8/dist-packages/sqlalchemy/engine/default.py", line 736, in do_execute
    cursor.execute(statement, parameters)
psycopg2.errors.ProgramLimitExceeded: index row size 3896 exceeds btree version 4 maximum 2704 for index "ix_records_contacts"
DETAIL:  Index row references tuple (225,3) in relation "records".

the record has 60 contacts (mainly contributing authors)

Environment

  • operating system: ubuntu/docker
  • Python version: 3.8
  • pycsw version: master
@pvgenuchten
Copy link
Contributor Author

Got similar on a long abstract today,

Stackoverflow suggested to define index as:

create index on the_table(left(the_column(1,100))

would that be a solution here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant