def handle_row_description(self):
        (size, n) = unpack("!ih", receive(6))

        names = []
        types = []
        for x in xrange(n):
            name = until('\0')[:-1]
            names.append(name)
            taboid, fattnum, typoid, sz, typmod, fmt = \
            unpack('!ihihih', receive(18))

            assert fmt == 0
            types.append(typoid)

        return PgRowDescriptor(names, types)
dataset/ETHPy150Open dieseldev/diesel/diesel/protocols/pg.py/PostgreSQLClient.handle_row_description/original