Nathan Bell <nathanb@xxxxxxxxxx> writes: > Firing up 8.2.1 I notice that sub-items in a view are optimized out if > they aren't being selected. You mean "not optimized out", I suppose. Declare your function as non-volatile if you want the optimizer to assume it's OK to discard. regards, tom lane