Re: psql and blob - Mailing list pgsql-general

From Tom Lane
Subject Re: psql and blob
Date
Msg-id 29727.1063901057@sss.pgh.pa.us
Whole thread Raw
In response to Re: psql and blob  (Daniel Schuchardt <daniel_schuchardt@web.de>)
List pgsql-general
Daniel Schuchardt <daniel_schuchardt@web.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

pgsql-general by date:

Previous
From: Tim McAuley
Date:
Subject: Re: Cannot Delete
Next
From: Tom Lane
Date:
Subject: Re: Cannot Delete