Swap max costing values to align with upstream guidance
A feature targeted for PostgreSQL 18 (postgres/postgres@e2225346) that makes optimizations around disabled path nodes impacted pgvector such that PostgreSQL would choose to perform an index scan when it should have used a different scan (e.g. SELECT count(*) FROM table). Per upstream guidance[1], the recommendation is to switch to using get_float8_infinity(), which achieves the same behavior in backbranches, and can be adapated to work with the new behavior introduced in PostgreSQL 18.
[1] https://www.postgresql.org/message-id/2281822.1724441531%40sss.pgh.pa.us
Thanks @jkatz, will merge once things are finalized.
Looks like CI is still failing for pg18, but should be okay to merge. Thanks @jkatz!
Pushed a different fix in 1291b12090bbb03bd92b92e42a1567ae5b1c96ad to address this.