Fwd: [Pgsql-ayuda] modificar schema de todo el bd
Sandrigo Lezcano
alkafes@yahoo.com
Wed, 2 Jul 2003 08:50:11 -0500 (CDT)
--- Sandrigo Lezcano <alkafes@yahoo.com> escribió: >
>
> -- Schema: "postgres" by pgAdminIII (linux)
> -- DROP SCHEMA postgres;
>
> CREATE SCHEMA postgres
> AUTHORIZATION postgres;
> REVOKE ALL ON SCHEMA postgres FROM public;
> GRANT ALL ON SCHEMA postgres TO postgres;
> COMMENT ON SCHEMA postgres IS 'parche para el
> powerbuilder namespace';
>
perdon.. no se fue todo el msg..
se creo con OID 158645 y el del public es 2200
haciendo:
rrhh=# select relname,relnamespace, reltype, relowner
from pg_class where relnamespace = 2200;
me devuelve casi 300 rows (_pkey, _seq, blabla)
puedo sustituir en pg_class todos 2200 por 158645 ???
otra pregunta q me hice fue:
no habria otro "pg_" donde pueda cambiar el nombre
'public' por 'postgres' manteniendo asi el 2200 ???
(YA hice backup!! heee...)
abrazos..
_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com