From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Luis Eduardo Villarruel <esisnet(at)gmail(dot)com> |
Cc: | pgsql-es-ayuda(at)postgresql(dot)org |
Subject: | Re: Cambiar en cascada propietario de tablas |
Date: | 2007-08-22 16:54:54 |
Message-ID: | 20070822165454.GA26038@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Luis Eduardo Villarruel escribió:
> Lo último que hice fue:
>
> ALTER TABLE public.MyTabla OWNER TO myOtroUsuario;
>
> Esto me funcionó, y al ejecutar un select sobre la tabla bajos las
> credenciales de myOtroUsuario lo pude hacer sin problemas. Así que
> solucioné el problema en parte, lo complicado de esto es que son 250
> tablas y quisiera saber si hay un método mas rapido para cambiar el
> propietario de todas estas tablas,
Claro, haz un script o una funcion.
--
Alvaro Herrera http://www.amazon.com/gp/registry/DXLWNGRJD34J
"Before you were born your parents weren't as boring as they are now. They
got that way paying your bills, cleaning up your room and listening to you
tell them how idealistic you are." -- Charles J. Sykes' advice to teenagers
From | Date | Subject | |
---|---|---|---|
Next Message | Julio Rivero | 2007-08-22 17:10:15 | Re: ACCESO A LOS USUARIOS |
Previous Message | Luis Eduardo Villarruel | 2007-08-22 16:32:09 | Cambiar en cascada propietario de tablas |