You might be better off using a bytea column, which is a far simpler construct than a large object. It won't give you streamwise access, just fetch or store the whole value at once, but that might be all you need. regards, tom lane