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 01599D1B4AA for ; Wed, 26 Nov 2003 14:00:41 +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 42752-10 for ; Wed, 26 Nov 2003 10:00:13 -0400 (AST) Received: from tinet.org (mail.tinet.org [195.77.216.130]) by svr1.postgresql.org (Postfix) with ESMTP id 96FE8D1B4BE for ; Wed, 26 Nov 2003 10:00:08 -0400 (AST) Received: (qmail 17281 invoked from network); 26 Nov 2003 13:59:55 -0000 Received: from aitana.altanet.org (HELO tinet.org) ([195.76.233.3]) (envelope-sender ) by mail.tinet.org (SMTP OASI) with SMTP for ; 26 Nov 2003 13:59:55 -0000 Message-ID: <3FC4B19A.3060104@tinet.org> Date: Wed, 26 Nov 2003 14:58:50 +0100 From: Daniel Rubio User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: pg_lo_import alternative ... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/443 X-Sequence-Number: 11430 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 ********************************************************