X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E4E56D1BB90 for ; Wed, 26 Nov 2003 16:08:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 66327-08 for ; Wed, 26 Nov 2003 12:07:43 -0400 (AST) Received: from mailserv.mecnet.net (mailserv.mecnet.net [216.20.10.4]) by svr1.postgresql.org (Postfix) with ESMTP id 52004D1B464 for ; Wed, 26 Nov 2003 12:07:32 -0400 (AST) Received: from [192.168.1.253] (HELO mailfilter2.mecnet.net) by mailserv.mecnet.net (CommuniGate Pro SMTP 4.0.5) with ESMTP id 17994556; Wed, 26 Nov 2003 11:10:56 -0500 Received: from [216.20.10.3] (helo=portal) by mailfilter2.mecnet.net with esmtp (Exim 4.12) id 1AP2Gi-0005xb-00; Wed, 26 Nov 2003 11:11:56 -0500 Received: from 216.20.112.100 (unverified [216.20.112.100]) by portal (VisualOffice 4.01) with WEBMAIL id 11646; Wed, 26 Nov 2003 16:10:22 +0000 From: kent@wareham.k12.ma.us To: pgsql-admin@postgresql.org Cc: "Andrei Bintintan" Importance: Normal Sensitivity: Normal Message-ID: X-Mailer: Mintersoft VisualOffice, Build 4.01.1003 X-Originating-IP: [216.20.112.100] Date: Wed, 26 Nov 2003 16:10:22 +0000 Subject: Re: pg_lo_import alternative ... MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.3 (/) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *1AP2Gi-0005xb-00*sAcNWp59b6Q* X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/445 X-Sequence-Number: 11432 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 p= roblem 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 laye= r 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 pleas= e 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" >To: >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=EDguez >> OASI (Organisme Aut=F2nom Per la Societat de la Informaci=F3) >> 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 >