Andrew Kane
e575866297
Revert "Fixed warnings with Postgres 18 [skip ci]"
...
This reverts commit 32e95a8598 .
2025-04-05 12:56:00 -07:00
Andrew Kane
35f4f7fc80
Improved warning check [skip ci]
2025-04-05 12:38:30 -07:00
Andrew Kane
32e95a8598
Fixed warnings with Postgres 18 [skip ci]
2025-04-05 12:13:38 -07:00
Andrew Kane
a03dc5b7d0
Added fields to IndexAmRoutine for Postgres 18 [skip ci]
2025-04-05 11:31:57 -07:00
Andrew Kane
857d716d9e
Renamed iterative_search to iterative_scan
2024-10-27 14:02:22 -07:00
Andrew Kane
78b877bdaf
Revert "Renamed iterative_search to iterative_scan"
...
This reverts commit 7043cce893 .
2024-10-24 20:32:07 -07:00
Andrew Kane
7043cce893
Renamed iterative_search to iterative_scan
2024-10-24 20:31:43 -07:00
Andrew Kane
1291b12090
Added Postgres 18 to CI [skip ci]
2024-10-22 00:38:19 -07:00
Andrew Kane
e718eb8da4
Updated range and defaults for iterative search parameters
2024-10-21 20:38:50 -07:00
Andrew Kane
7484625227
Added comments [skip ci]
2024-10-11 11:59:36 -07:00
Andrew Kane
d1ebb8db73
Use -1 for no limit for ivfflat.max_probes [skip ci]
2024-10-11 11:43:32 -07:00
Andrew Kane
42af8aa1d1
Updated GUC descriptions [skip ci]
2024-10-11 11:26:27 -07:00
Andrew Kane
a3a20f9816
Simplified GUC names [skip ci]
2024-10-11 11:18:01 -07:00
Andrew Kane
2dc392ed6c
Updated GUC names [skip ci]
2024-10-10 23:50:11 -07:00
Andrew Kane
c91ed7b2c3
Added iterative search for IVFFlat [skip ci]
2024-10-10 18:12:27 -07:00
Andrew Kane
77688b4309
Improve total cost for cost estimation ( #686 )
2024-10-08 12:42:03 -07:00
Andrew Kane
8e979ed377
Do not adjust index selectivity based on probes [skip ci]
2024-09-25 13:48:24 -07:00
Andrew Kane
b738ffecc1
Dropped support for Postgres 12
2024-09-19 18:13:54 -07:00
Jonathan S. Katz
05fb382031
Swap max costing values to align with upstream guidance ( #658 )
...
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
2024-09-19 18:01:59 -07:00
Andrew Kane
ea99957fae
Added fields to IndexAmRoutine
2024-08-22 20:39:16 -07:00
Andrew Kane
61870a0244
Fixed compilation warning with MSVC and Postgres 16 - fixes #598
...
Co-authored-by: Xing Guo <higuoxing@gmail.com >
2024-06-16 12:09:01 -07:00
Andrew Kane
5dec500879
Reduced support functions for IVFFlat - #527
2024-04-25 13:56:20 -07:00
Andrew Kane
e9c3c42e1c
Reduced support functions for ivfflat - #527
2024-04-25 11:49:48 -07:00
Andrew Kane
8f00d679d6
Removed type-specific code from IVFFlat - #527
2024-04-24 22:19:53 -07:00
Andrew Kane
69c3e719f7
Added support functions for max dimensions for ivfflat
2024-04-24 15:27:10 -07:00
Andrew Kane
0da6213a60
Moved type lookup to support functions - #527
2024-04-23 13:02:47 -07:00
Andrew Kane
bd62561a19
Added support function for l2_normalize to ivfflat
2024-04-22 19:06:06 -07:00
Heikki Linnakangas
e5d1a6bdbb
Include reloptions.h directly in the .c files where it's needed
...
There are no references to anything that's in reloptions.h in the
header files. They need to include genam.h instead, which defines
IndexScanDesc.
2024-01-23 13:02:24 +02:00
Andrew Kane
083008c21e
Added validation for GUC parameters
2024-01-22 23:55:30 -08:00
Andrew Kane
a1e526ef82
Dropped support for Postgres 11
2024-01-22 23:52:54 -08:00
Andrew Kane
bab5fea9e7
Improved variable name [skip ci]
2023-09-03 12:32:59 -07:00
Andrew Kane
b1f9519689
Get info from metapage to determine cost
2023-09-03 12:31:01 -07:00
Andrew Kane
86c29b3bf0
Improved param code
2023-08-23 21:10:00 -07:00
Andrew Kane
6e8746277e
Moved _PG_init
2023-07-16 20:03:34 -07:00
Andrew Kane
ad8df27fbb
Changed sorting tuples indexing phase to assigning tuples [skip ci]
2023-07-16 18:46:45 -07:00
Andrew Kane
629fa6f0cd
Updated cost estimation code (same logic)
2023-06-10 10:52:29 -07:00
Andrew Kane
a33e72d58e
Always change some cost to sequential, and always update total cost
2023-06-10 02:10:53 -07:00
Andrew Kane
49e6a72d36
Remove cost of extra pages when random_page_cost equals seq_page_cost
2023-06-10 01:18:21 -07:00
Andrew Kane
b158a5fa48
Moved get_tablespace_page_costs [skip ci]
2023-06-10 01:07:54 -07:00
Andrew Kane
81cc04df61
Only adjust cost if random_page_cost is higher than seq_page_cost
2023-06-10 01:06:05 -07:00
Andrew Kane
8cb32cac76
Added comment [skip ci]
2023-06-09 21:20:48 -07:00
Andrew Kane
4ce915cf16
Improved cost estimate - #133
2023-06-09 21:11:16 -07:00
Andrew Kane
41b766c24b
Use index tuples
2023-06-09 19:55:49 -07:00
Jonathan S. Katz
7446cbde8f
Update ivfflat cost estimation to choose index for more searches ( #133 )
...
Co-authored-by: Andrew Kane <andrew@ankane.org >
2023-06-09 17:53:14 -07:00
Andrew Kane
451ac59a03
Improved code [skip ci]
2023-05-20 19:04:35 -07:00
Andrew Kane
6f94c5e897
Improved code [skip ci]
2023-05-20 19:02:38 -07:00
Andrew Kane
0f69cc789a
Combined sampling table and performing k-means phases
2022-12-23 08:07:09 -08:00
Andrew Kane
b09e14ce14
Dropped support for Postgres 10
2022-12-23 08:03:03 -08:00
Andrew Kane
1b5cb17f22
Removed code for Postgres < 10
2022-12-22 21:21:29 -08:00
Andrew Kane
2621f9f947
Added experimental support for Windows (including auto-vectorization) - closes #49
2022-12-08 13:27:26 -08:00