News for hackers. Stuff that matters.
Re:Building a MongoDB Clone in Postgres by jerrysievert on Monday June 04, 2012 @02:35PM (#4065216)
you can, but in order to build a partial index, the function needs to be immutable. not exactly ideal in this case.
Re:Building a MongoDB Clone in Postgres by rosser on Monday June 04, 2012 @02:40PM (#4065236)
Immutability is perfectly appropriate for that use-case, though. Creating an index via a function that may return different outputs when provided the same input is always going to lose.