Re: [HACKERS] how to get the max value in an array

2011-06-02 Thread Robert Haas
On Thu, Jun 2, 2011 at 10:52 PM, fanngyuan wrote: > hi guys: >    I'm using int[] in postgrsql to store int array. I want to get max value > of each row . While I can't find any function to get it(max function will > get max array in one column) . Even I could write a sql function to get the > max

[HACKERS] how to get the max value in an array

2011-06-02 Thread fanngyuan
hi guys: I'm using int[] in postgrsql to store int array. I want to get max value of each row . While I can't find any function to get it(max function will get max array in one column) . Even I could write a sql function to get the max value. I still think a native funtion is better . Can