pqxx::field pqxx::row::at (const char f[]) const
Warning: This is much slower than indexing by number, or iterating.
Without caching, we're repeatedly calling PQfnumber for each row/field, which does a strcmp across all column names. Since our queries don't return a huge number of columns, this was not too bad before.
From libpqxx docs:
Without caching, we're repeatedly calling PQfnumber for each row/field, which does a strcmp across all column names. Since our queries don't return a huge number of columns, this was not too bad before.