Thanks
grinder! (and
Corion!)
The elaboration makes good sense, the db->do and db->quote snippet above is working properly for me.
Something weird was going on, but this snippet seems to skirt the problem nicely (whatever it was).
This is my first experience with PostgreSQL and my first non-trivial use of DBI, so I'm feeling my way a bit.