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 row size 2776 exceeds btree version 4 maximum 2704 for index "occurrence_notice_id_message_key" #6

Open
masterkain opened this issue May 18, 2023 · 0 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers postgres Postgres related

Comments

@masterkain
Copy link
Member

https://www.prisma.io/docs/concepts/components/prisma-client/full-text-search#enabling-full-text-search
https://github.com/Linen-dev/linen.dev/blob/main/packages/database/prisma/schema.prisma#L33
prisma/prisma#8950

- error PrismaClientUnknownRequestError: 
Invalid `prisma.occurrence.upsert()` invocation:


Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState(E54000), message: "index row size 2776 exceeds btree version 4 maximum 2704 for index \"occurrence_notice_id_message_key\"", detail: Some("Index row references tuple (2,8) in relation \"occurrence\"."), hint: Some("Values larger than 1/3 of a buffer page cannot be indexed.\nConsider a function index of an MD5 hash of the value, or use full text indexing."), position: None, where_: None, schema: Some("public"), table: Some("occurrence"), column: None, datatype: None, constraint: Some("occurrence_notice_id_message_key"), file: Some("nbtutils.c"), line: Some(2668), routine: Some("_bt_check_third_page") }) }), transient: false })
    at Pn.handleRequestError (/app/node_modules/@prisma/client/runtime/library.js:171:7103)
    at Pn.handleAndLogRequestError (/app/node_modules/@prisma/client/runtime/library.js:171:6358)
    at Pn.request (/app/node_modules/@prisma/client/runtime/library.js:171:6237)
    at async processError (/app/.next/server/app/api/v3/projects/[project_id]/notices/route.js:170:9)
    at async POST (/app/.next/server/app/api/v3/projects/[project_id]/notices/route.js:298:9)
    at async /app/.next/server/chunks/616.js:1292:37 {
  clientVersion: '4.14.0'
}
@masterkain masterkain self-assigned this May 18, 2023
@masterkain masterkain added good first issue Good for newcomers postgres Postgres related bug Something isn't working labels May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers postgres Postgres related
Projects
None yet
Development

No branches or pull requests

1 participant