pgsql: pg_stat_statements: Fix handling of duplicate constant locations

2025-10-29 Thread Álvaro Herrera
pg_stat_statements: Fix handling of duplicate constant locations Two or more constants can have the same location. We handled this correctly for non squashed constants, but failed to do it if squashed (resulting in out-of-bounds memory access), because the code structure became broken by commit 0

pgsql: pg_stat_statements: Fix handling of duplicate constant locations

2025-10-29 Thread Álvaro Herrera
pg_stat_statements: Fix handling of duplicate constant locations Two or more constants can have the same location. We handled this correctly for non squashed constants, but failed to do it if squashed (resulting in out-of-bounds memory access), because the code structure became broken by commit 0