I get an error
"pq: number of pairs (576791101) exceeds the maximum allowed (26843545)"
while executing a query by db.Exec.
The cause is that there is a []byte conversion in Hstore.Value. Without it a query executed as expected.
Code example:
hs := hstore.Hstore{map[string]sql.NullString{"a": {"b", true}}}
db.Exec(`SELECT $1::hstore`, hs)