Fixed #20168 - Generalized a PostgreSQL specific database query in the docs.

Thanks Russ for the suggestion.