class PGResponseClassifier extends ResponseClassifier {

    @Override public List<byte[]> toPackets() {
        List<byte[]> packets = new ArrayList<>();
        if (columns.size() == 1) {
            packets.add(columns.get(0));
        }
        packets.addAll(rows);
        commandCompleteOp.ifPresent(packets::add);
        readyForQueryOp.ifPresent(packets::add);
        return packets;
    }

}