Re: lo_import

From: "Roberto Cesar Najera" <rob(at)dcaa(dot)unam(dot)mx>
To: "Mauricio Zea (Gmail)" <jmzlbqcol(at)gmail(dot)com>
Cc: <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: lo_import
Date: 2005-05-23 22:21:36
Message-ID: 024901c55fe5$c943f230$8c000a0a@RTP.GOB.MX
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

de acuerdo con esto, ahora tengo un problema, el usuario no tiene un shell,
ni una cueta para entrar al servidor, solo es una cuenta de postgres que
utilizo para conectarmen a la BD, lo de menos es crearla, la pregunta es,
ahora como le asigno permisos para que pueda hacer uso de esas funciones,...

por que ya cree el usuario y entre al cliente y me sigue mandando ul mismo
error, ahora el archivo que quiero insertar a la bd es de el , es mas
tiene el permiso 777 y el directorio tambien

alguna sugerencia ?

de antemano gracias !

----- Original Message -----
From: "Mauricio Zea (Gmail)" <jmzlbqcol(at)gmail(dot)com>
To: "Roberto Cesar Najera" <rob(at)dcaa(dot)unam(dot)mx>;
<pgsql-es-ayuda(at)postgresql(dot)org>
Sent: Monday, May 23, 2005 3:36 PM
Subject:

> Mi amigo:
>
> Según el manual:
>
> <<<<
> 28.4. Server-Side Functions
> There are two built-in server-side functions, lo_import and lo_export, for
> large object access, which are available for use in SQL commands. Here is
an
> example of their use:
>
> CREATE TABLE image (
> name text,
> raster oid
> );
>
> INSERT INTO image (name, raster)
> VALUES ('beautiful image', lo_import('/etc/motd'));
>
> SELECT lo_export(image.raster, '/tmp/motd') FROM image
> WHERE name = 'beautiful image';These functions read and write files in
> the server's file system, using the permissions of the database's owning
> user. Therefore, their use is restricted to superusers. (In contrast, the
> client-side import and export functions read and write files in the
client's
> file system, using the permissions of the client program. Their use is not
> restricted.)
>
> >>>>
>
> Con gusto,
>
> Mauricio Zea
>
> ----- Original Message -----
> From: "Roberto Cesar Najera" <rob(at)dcaa(dot)unam(dot)mx>
> To: <pgsql-es-ayuda(at)postgresql(dot)org>
> Sent: Monday, May 23, 2005 3:11 PM
> Subject: [pgsql-es-ayuda] lo_import
>
>
> > Hola lista, como se le hace para que desde un usuario normal purde
> > ejecutar
> > la funcion lo_import
> >
> > me marca el siguiente error
> >
> > ERROR: must be superuser to use server-side lo_import()
> > HINT: Anyone can use the client-side lo_import() provided by libpq.
> >
> > como cambio este valor para que cualquier usuario o uno en especifico lo
> > pueda ejecutar ?
> >
> > De antemano gracias !
> >
> >
> > ---------------------------(fin del mensaje)---------------------------
> > TIP 4: No hagas 'kill -9' a postmaster
>
>
> ---------------------------(fin del mensaje)---------------------------
> TIP 5: ¿Has leído nuestro extenso FAQ?
>
> http://www.postgresql.org/files/documentation/faqs/FAQ.html

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Ing. Jhon Carrillo 2005-05-23 22:22:42 CAMBIO DE FORMATO
Previous Message mmiranda 2005-05-23 21:52:32 RE: Ayuda manejo de horas