AntiPattern
Type Misuse in Queries
type-mismatch-query-casting
PostgreSQL queries fail or behave unexpectedly when values are implicitly cast across numeric and date/timestamp types (e.g., bytea to date, float rounding ties), leading to missing-function errors or brittle comparisons.