Fun fact: Samsung made some SSDs ("SmartSSD") with an embedded programmable FPGA and one of the demos was using it along a modified version of postgresql to offload filtering and scans to the storage itself: https://pages.cs.wisc.edu/~jignesh/publ/SmartSSD.pdf
https://www.xilinx.com/publications/product-briefs/xilinx-sm...
Though it looks like they didn't follow up on these and can't find them for sale