pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedAW: psql and lo_import
3+ messages / 3 participants
[nested] [flat]
* AW: psql and lo_import
@ 2001-07-16 19:18 berger, ralf <ralf.berger@ipk.fhg.de>
2001-07-16 20:10 ` Re: AW: psql and lo_import Tom Lane <tgl@sss.pgh.pa.us>
2001-07-16 20:47 ` Re: AW: psql and lo_import Peter Eisentraut <peter_e@gmx.net>
0 siblings, 2 replies; 3+ messages in thread
From: berger, ralf @ 2001-07-16 19:18 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-admin
Hi,
> -----Ursprüngliche Nachricht-----
> Von: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> Gesendet: Montag, 16. Juli 2001 19:38
> An: berger, ralf
> Cc: pgsql-admin@postgresql.org
> Betreff: Re: [ADMIN] psql and lo_import
>
>
> "berger, ralf" <ralf.berger@ipk.fhg.de> writes:
> > is there any way to use lo_import() in psql?
>
> See \lo_import
>
Sorry this don't work for me!
Because if I type \lo_import() in an insert statement:
INSERT INTO test VALUES ( \lo_import('/home/torsten/bild1.gif') );
I got a list of database owners and the following output:
psql:lo_import.sql:1: \l: extra argument
'o_import('/home/torsten/bild1.gif')' ignored
psql:lo_import.sql:1: ERROR: parser: parse error at or near ")"
Any hint how to use this?
Thanx
Ralf
P.S.
My PostgreSQL is 7.0.3 on a Linux box, if this matter.
--
Fraunhofer IPK
Automatisierung und Robotik
Dipl.-Inf. Ralf Berger
Pascalstr. 8-9
10587 Berlin
Tel.: ++49-(0)30 390 06 129
Mobile: ++49-(0)175 52 50 118
Fax.: ++49-(0)30 391 10 37
Web : http://www.ar.ipk.fhg.de
Web : http://www.e-industrial-services.de
---
In anything at all, perfection is finally attained not when
there is no longer anything to add, but when there is
no longer anything to take away.
Antoine de Saint Exupery
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: AW: psql and lo_import
2001-07-16 19:18 AW: psql and lo_import berger, ralf <ralf.berger@ipk.fhg.de>
@ 2001-07-16 20:10 ` Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2001-07-16 20:10 UTC (permalink / raw)
To: berger, ralf <ralf.berger@ipk.fhg.de>; +Cc: pgsql-admin
"berger, ralf" <ralf.berger@ipk.fhg.de> writes:
> Any hint how to use this?
Get a more recent release...
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: AW: psql and lo_import
2001-07-16 19:18 AW: psql and lo_import berger, ralf <ralf.berger@ipk.fhg.de>
@ 2001-07-16 20:47 ` Peter Eisentraut <peter_e@gmx.net>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Eisentraut @ 2001-07-16 20:47 UTC (permalink / raw)
To: berger, ralf <ralf.berger@ipk.fhg.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-admin
berger, ralf writes:
> Because if I type \lo_import() in an insert statement:
>
> INSERT INTO test VALUES ( \lo_import('/home/torsten/bild1.gif') );
>
> I got a list of database owners and the following output:
>
> psql:lo_import.sql:1: \l: extra argument
> 'o_import('/home/torsten/bild1.gif')' ignored
> psql:lo_import.sql:1: ERROR: parser: parse error at or near ")"
\lo_import /home/torsten/bild1.gif
INSERT INTO test VALUES ( :LASTOID );
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-07-16 20:47 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-07-16 19:18 AW: psql and lo_import berger, ralf <ralf.berger@ipk.fhg.de>
2001-07-16 20:10 ` Tom Lane <tgl@sss.pgh.pa.us>
2001-07-16 20:47 ` Peter Eisentraut <peter_e@gmx.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox