PG: Array Functions - array_length

dimension(维)

Explanation

Rails Project Example

Book.where('array_length(templates, dimension=1) = 2')

S