pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: kent@wareham.k12.ma.us
To: pgsql-admin@postgresql.org
Cc: Andrei Bintintan <klodoma@ar-sd.net>
Subject: Re: pg_lo_import alternative ...
Date: Wed, 26 Nov 2003 16:10:22 +0000
Message-ID: <W6220820784116461069863022@portal> (raw)

I'm after experiences similar to what you are describing with lo_export. I have used lo_import and ol_export to test image storage and retrival. One problem that you mention is with super user access required to export to the local file system. The second problem is that it seems to add another layer to a web application. A table constructed that contains pointers outside the database seems to be the easiest to deal with in terms of retrieval of images and dislpay within a web page.

Anyone that that is using Postgres for storage and retrival of images please post your experiences. Thank you.

>-----Original Message-----
>From: Andrei Bintintan [mailto:klodoma@ar-sd.net]
>Sent: Wednesday, November 26, 2003 02:20 PM
>To: 'Daniel Rubio', pgsql-admin@postgresql.org
>Subject: Re: [ADMIN] pg_lo_import alternative ...
>
>Are there many images?
>
>I do not suggest to store the images in the database. Better save them on
>the disk and in the database save only the path to the image. Think also to
>the size of the dump(with images).
>
>It is more easy to handle this way.
>
>This is my opinion.
>
>Best regards.
>Andy.
>
>----- Original Message -----
>From: "Daniel Rubio" <drubior@tinet.org>
>To: <pgsql-admin@postgresql.org>
>Sent: Wednesday, November 26, 2003 3:58 PM
>Subject: [ADMIN] pg_lo_import alternative ...
>
>
>> Hi all.
>>
>> One of our clients wants to store images into his postgres database
>> hosted by us.
>>
>> To do this is trying to use the PHP function pg_lo_import, receiving
>> this error message from server:
>>
>> Waning: pg_query() [function.pg-query]: Query failed: ERROR: You must
>> have Postgres superuser privilege to use server-side lo_import(). Anyone
>> can use the client-side lo_import() provided by libpq. . in
>> /apps/web/html/funcions.php on line 121
>>
>> I can read that there's a client-side function in libpq, but I can't
>> find any information about it and their use.
>>
>> Anyone knows something?
>> --
>> ********************************************************
>> Daniel Rubio Rodríguez
>> OASI (Organisme Autònom Per la Societat de la Informació)
>> c/ Assalt, 12
>> 43003 - Tarragona
>> Tef.: 977.244.007 - Fax: 977.224.517
>> e-mail: drubio@oasi.org
>> ********************************************************
>>
>>
>> ---------------------------(end of broadcast)---------------------------
>> TIP 8: explain analyze is your friend
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
>      subscribe-nomail command to majordomo@postgresql.org so that your
>      message can get through to the mailing list cleanly
>





view thread (8+ messages)  latest in thread

Message-ID: <W6220820784116461069863022@portal>
Permalink:  ../W6220820784116461069863022@portal/
Also on:    postgresql.org/message-id/W6220820784116461069863022@portal

 · 

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-admin@postgresql.org
  Cc: kent@wareham.k12.ma.us, klodoma@ar-sd.net
  Subject: Re: pg_lo_import alternative ...
  In-Reply-To: <W6220820784116461069863022@portal>
  References: <W6220820784116461069863022@portal>

* 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