Daniel Schuchardt <daniel_schuchardt(at)web(dot)de> writes:
> So I have to do 2 steps manually in psql:
> \lo_import(ClientFile) -> Returns OID
> INSERT INTO tablexy (BLOBFIELD) VALUES (Returned OID)
> Is there a way to do this automatically?
See psql's :LASTOID (I think that's the name) variable.
regards, tom lane