We should typecheck the key variable. I was passing in an object from the client {key: 4} instead of the number 4, and this segfaulted pg and crashed the datasource. I no longer do this from the client! But the server should be able to handle some unexpected input here.