Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pg_catalog: indoption was not encoded correctly
Previously, the indoption field inside pg_index was encoded incorrectly, which could cause problems for binary clients. Specifically, an int8 was being sent across the wire, then int2vectors are supposed to be made of int2. To address this, this patch ensures that an int2 is used and adds assertion inside the conversion code (for int2vector) to avoid future problems. Fixes: cockroachdb#111907 Release note (bug fix): indoption inside pg_index was not properly encoded, causing clients to be unable to decode it as int2vector.
- Loading branch information