Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.1K
Views
Django y Postgres: el tamaño de la fila de índice supera el máximo de la versión 4 de btree

He definido lo siguiente en Django para almacenar un certificado SSL en formato PEM de texto sin formato:

 class Certificate(models.Model): pem = models.CharField(max_length=4096, unique=True, blank=False, null=False)

Al completar la columna de la tabla en Postgres , veo este error que dice que el tamaño de los datos es demasiado grande para el índice del árbol b:

 django.db.utils.OperationalError: index row size 2720 exceeds btree version 4 maximum 2704 for index "app_certificate_pem_key" DETAIL: Index row references tuple (1,6) in relation "app_certificate". 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.

¿Existe una forma "Django" de crear un índice único basado en un hash de mi columna pem?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece que se excedió el ancho de su índice. Intente eliminar el índice del campo pem.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!