postgresql7.1 select m.* from $table_and_group $where_clause $order_clause offset [expr $start_row - 1] limit $num_rows