]> granicus.if.org Git - postgresql/commit
Add some knowledge about prefix matches to tsmatchsel(). It's not terribly
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Aug 2010 21:31:08 +0000 (21:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Aug 2010 21:31:08 +0000 (21:31 +0000)
commit97532f7c29468010b87e40a04f8daa3eb097f654
tree699850bdd0b86ae5afe0fb0d8c8568cdff37fe7e
parentd4fe61b08353c98b636255645a76709f3051df34
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.
src/backend/tsearch/ts_selfuncs.c