pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julie May <julie@ccorb.com>
To: Andre Felipe Machado <andremachado@techforce.com.br>
To: pgsql-odbc@postgresql.org
Subject: Re: large objects and pg 7.3.x
Date: Tue, 19 Aug 2003 17:25:51 -0600
Message-ID: <018701c366a9$3aea84e0$a1d2a8c0@impsu.net> (raw)
References: <00ea01c36661$ffa944d0$3d283ddb@PbgX>
	<200308191216.02961.andremachado@techforce.com.br>

I am able to insert an image into postgresql using the psqlodbc driver. I
created the lo type using the files in the contrib directory. I was never
able to make the lo_manage() function work. Instead I created my own
functions and used triggers to execute them. I only needed the functions for
deleting and updating records. I haven't had any problems inserting. When
the lo type was created it should have created the following functions :
lo(oid)
lo_in(cstring)
lo_manage()
lo_oid(public.lo)
lo_out(public.lo)
oid(public.lo)

I hope that is somewhat helpfull.

Julie

<snip>
----- Original Message -----
From: "Andre Felipe Machado" <andremachado@techforce.com.br>
> The postgresql psql tool can insert an image (can also extracts it) using
> direct sql commands. And OpenOffice can display it at the form.
> When trying to save a new record, containing a new image, the program
> complains.
> The error message is reproduced at near the end of the attached sql log
file.
> I hope this help.
> Regards.
> Andre Felipe

</snip>




view thread (10+ messages)  latest in thread

Message-ID: <018701c366a9$3aea84e0$a1d2a8c0@impsu.net>
Permalink:  ../018701c366a9$3aea84e0$a1d2a8c0@impsu.net/
Also on:    postgresql.org/message-id/018701c366a9$3aea84e0$a1d2a8c0@impsu.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: julie@ccorb.com, andremachado@techforce.com.br
  Subject: Re: large objects and pg 7.3.x
  In-Reply-To: <018701c366a9$3aea84e0$a1d2a8c0@impsu.net>
  References: <00ea01c36661$ffa944d0$3d283ddb@PbgX> <200308191216.02961.andremachado@techforce.com.br> <018701c366a9$3aea84e0$a1d2a8c0@impsu.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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