Will Postgres' DISTINCT function always return null as the first element? <p>I'm selecting distinct values from tables thru Java's JDBC connector and it seems that NULL value (if there's any) is always the first row in the ResultSet.</p> <p>I need to remove this NULL from the List where I load this ResultSet. The logic looks only at the first element and if it's null then ignores it.</p> <p>I'm not using any ORDER BY in the query, can I still trust that logic? I can't find any reference in Postgres' documentation about this.</p>