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 94120D1B484 for ; Wed, 26 Nov 2003 14:18:36 +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 51605-01 for ; Wed, 26 Nov 2003 10:18:09 -0400 (AST) Received: from ar-sd.net (unknown [81.196.32.112]) by svr1.postgresql.org (Postfix) with ESMTP id A45B1D1B4A4 for ; Wed, 26 Nov 2003 10:18:00 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ar-sd.net (Postfix) with ESMTP id 3ABBD1CF1E; Wed, 26 Nov 2003 16:22:06 +0200 (EET) Received: from andy (unknown [192.168.0.11]) by ar-sd.net (Postfix) with SMTP id 21341159AF; Wed, 26 Nov 2003 16:22:06 +0200 (EET) Message-ID: <00d201c3b428$64cace10$0b00a8c0@andy> From: "Andrei Bintintan" To: "Daniel Rubio" , References: <3FC4B19A.3060104@tinet.org> Subject: Re: pg_lo_import alternative ... Date: Wed, 26 Nov 2003 16:20:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/444 X-Sequence-Number: 11431 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í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