<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/eav-loses-the-benchmark-war-postgres-silently-truncates-your-names-j1j2kghgc" -->

---
title: EAV loses the benchmark war, Postgres silently truncates...
description: Today's theme is Postgres internals that quietly bite you in production. One post benchmarks EAV against normalized schemas and normalized wins by 4-10x....
canonical: https://daily.dev/posts/eav-loses-the-benchmark-war-postgres-silently-truncates-your-names-j1j2kghgc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: EAV loses the benchmark war, Postgres silently truncates your names | daily.dev
og:description: Today's theme is Postgres internals that quietly bite you in production. One post benchmarks EAV against normalized schemas and normalized wins by 4-10x....
og:url: https://daily.dev/posts/eav-loses-the-benchmark-war-postgres-silently-truncates-your-names-j1j2kghgc
og:image: https://api.daily.dev/og/posts/j1j2KGHGC.png
og:image:alt: EAV loses the benchmark war, Postgres silently truncates your names
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# EAV loses the benchmark war, Postgres silently truncates your names

**[Databases Digest](https://daily.dev/sources/databases_digest)** · 3 min read · 0 upvotes · 0 comments

## Summary

Today's theme is Postgres internals that quietly bite you in production. One post benchmarks EAV against normalized schemas and normalized wins by 4-10x. Another digs into the 63-byte identifier limit that PostgreSQL truncates silently instead of rejecting. On the .NET side, EF Core 10 has a hard parameter wall at 2,098 that changes query plans without warning, and there's a good case study on an AI diagnostic agent that fabricated a Postgres corruption error out of thin air.

## Content

**TLDR:** Today's theme is Postgres internals that quietly bite you in production. One post benchmarks EAV against normalized schemas and normalized wins by 4-10x. Another digs into the 63-byte identifier limit that PostgreSQL truncates silently instead of rejecting. On the .NET side, EF Core 10 has a hard parameter wall at 2,098 that changes query plans without warning, and there's a good case study on an AI diagnostic agent that fabricated a Postgres corruption error out of thin air.

---

## EAV schemas lose to normalized tables by 4-10x in Postgres benchmarks

A hands-on EXPLAIN ANALYZE comparison ran three query types (simple filter, multi-attribute fetch, aggregate) against both an EAV schema and a normalized one for storing product attributes. EAV lost every time, mostly because of repeated self-joins on the attribute table plus text-to-numeric casts that block index usage entirely. The verdict: normalize unless your attributes are genuinely unpredictable and user-defined, and even then reach for JSONB before EAV. [Read more](https://daily.dev/posts/BF9dCgvHQ)

## PostgreSQL's 63-byte identifier limit truncates silently instead of erroring

Unlike MySQL, SQL Server, and Oracle, Postgres just chops names over 63 bytes and emits a NOTICE that your application code almost certainly never sees. This becomes a real collision hazard with generated names like partitions, where two names matching on the first 63 bytes get treated as identical objects. Postgres's own internal name generator dodges this by retrying with counters, but tooling is a mixed bag: pg_partman handles it fine, Django's had hashed names since 2010, and Rails only fixed a bytes-vs-characters bug in this exact area earlier this year. Raising the limit isn't happening either, since it requires a full initdb rebuild and recompiling every C extension. [Read more](https://daily.dev/posts/SL2Zs7NUu)

## EF Core 10's Contains() has a hard ceiling at 2,098 parameters, not 2,100

sp_executesql eats two parameters for itself, so the real usable ceiling for EF Core's default Contains() translation is 2,098, not the round number you'd guess. Below that, EF sends one scalar parameter per value; above it, it silently switches to a single JSON parameter via OPENJSON instead of throwing. Benchmarks across seven approaches on a million-row table found the default translation up to 8x slower than EF.Parameter in the 1,000-2,098 range, chunking is consistently the weakest option, and hand-rolled temp tables win once you're past 100,000 rows. Composite key filtering is worse off: there's no built-in IN translation at all, and OR-chain predicates crash with stack overflows past a few hundred pairs. [Read more](https://daily.dev/posts/nzDnHnZ2H)

## An AI diagnostic agent invented a Postgres WAL corruption error that never happened

Investigating a cleanly-shutdown replica container, the aiHelpDesk agent cited a fake 'terminating walreceiver due to timeout' message and an invented 'invalid record length' error, neither of which existed in the actual logs. The real cause was a routine admin-triggered shutdown. The catch came from a fabrication-detection layer called checkEvidenceProvenance, which does a plain substring check of quoted evidence against real recorded tool outputs rather than trusting a second model's judgment on whether the first one is lying. [Read more](https://daily.dev/posts/sUpMh9si0)

---

## Also notable

- **Node.js MySQL table lifecycle scripts tested against real error codes:** A trio of walkthroughs for creating databases, creating tables, and dropping tables from Node.js cover idempotency patterns (IF NOT EXISTS, IF EXISTS) and specific MySQL error codes to catch (1050, 1045, 1046, 1051, 1451), tested against Node 26.7.0, mysql2 3.24.4, and MariaDB 10.11.14. [Read more](https://daily.dev/feed-by-ids?id=d2unNfnaf&id=sCcp02RYS&id=YzBBZF2BN)

## Similar posts on daily.dev

- [Filtering EF Core by a Large List: The 2,100 Parameter Wall](https://daily.dev/posts/filtering-ef-core-by-a-large-list-the-2-100-parameter-wall-nzdnhnz2h) · Code with Mukesh · 24 upvotes · 0 comments
- [I ran the same query twice and Postgres disagreed with itself](https://daily.dev/posts/i-ran-the-same-query-twice-and-postgres-disagreed-with-itself-ijdy529gx) · Planet PostgreSQL · 1 upvotes · 0 comments

---

Tags: [#database](https://daily.dev/tags/database), [#.net](https://daily.dev/tags/.net), [#postgresql](https://daily.dev/tags/postgresql)

[View this post on daily.dev](https://daily.dev/posts/eav-loses-the-benchmark-war-postgres-silently-truncates-your-names-j1j2kghgc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/eav-loses-the-benchmark-war-postgres-silently-truncates-your-names-j1j2kghgc","headline":"EAV loses the benchmark war, Postgres silently truncates your names","text":"Today's theme is Postgres internals that quietly bite you in production. One post benchmarks EAV against normalized schemas and normalized wins by 4-10x. Another digs into the 63-byte identifier limit that PostgreSQL truncates silently instead of rejecting. On the .NET side, EF Core 10 has a hard parameter wall at 2,098 that changes query plans without warning, and there's a good case study on an AI diagnostic agent that fabricated a Postgres corruption error out of thin air.","url":"https://daily.dev/posts/eav-loses-the-benchmark-war-postgres-silently-truncates-your-names-j1j2kghgc","datePublished":"2026-09-14T04:17:33.772Z","dateModified":"2026-09-14T04:17:54.076Z","author":{"@type":"Organization","name":"Databases Digest","logo":"https://media.daily.dev/image/upload/s--ir1hdV8b--/f_auto,q_auto/v1773839400/logos/databases_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/databases_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/databases_digest","name":"Databases Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Databases Digest","item":"https://daily.dev/sources/databases_digest"},{"@type":"ListItem","position":3,"name":"EAV loses the benchmark war, Postgres silently truncates your names"}]}
```

