Received: from mailer.nupes.cefetpr.br (nat-nupes.cpdtt.cefetpr.br [200.134.9.250]) by hub.org (8.9.3/8.9.3) with ESMTP id SAA21440 for ; Tue, 18 Apr 2000 18:36:32 -0400 (EDT) (envelope-from igor@nupes.cefetpr.br) Received: from nupes.cefetpr.br (igor@maxwell [172.16.4.12]) by mailer.nupes.cefetpr.br (8.8.7/8.8.8) with ESMTP id TAA24458 for ; Tue, 18 Apr 2000 19:33:49 -0300 (EST) Message-ID: <38FCE2C3.A613E24D@nupes.cefetpr.br> Date: Tue, 18 Apr 2000 19:33:40 -0300 From: Igor Gavriloff X-Mailer: Mozilla 4.72 [pt_BR] (X11; U; Linux 2.2.14-14cl i686) X-Accept-Language: pt-BR, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: lo_import problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200004/134 Hi, I'm trying to write an script in Perl5 that do an lo_import, but using the one that the perl interface offers returns an oid equal to zero: ... $conn = Pg::connectdb("dbname=test"); $lobjId = $conn->lo_import($file); ... Where $file is the file to be imported into the database. If I try to do as in Chapter 45: INSERT INTO image (name, raster) VALUES ('beautiful image', lo_import('/etc/motd')); I get the following error: ERROR: You must have Postgres superuser privilege to use server-side lo_import(). Anyone can use the client-side lo_import() provided by libpq. And, indeed, this only works when logged on as superuser on the database, but not with the others. Thanks in advance. -- Is your job running? You'd better go catch it!