Add some knowledge about prefix matches to tsmatchsel(). It's not terribly
Tom Lane <tgl@sss.pgh.pa.us>
Add some knowledge about prefix matches to tsmatchsel(). It's not terribly bright, but it beats assuming that a prefix match behaves identically to an exact match, which is what the code was doing before :-(. Noted while experimenting with Artur Dobrowski's example.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tsearch/ts_selfuncs.c | modified | +108 −54 |