Para mover tabelas para outro tablespace a melhor forma é fazer um dump das
tabelas que você deseja mover e ao recarregá-las, use o comendo 'SET default
tablespace'. Escrevi algo que não é exatamente sobre isso, mas mostra um
pouco como fazer em:
http://www.midstorm.org/~telles/modules/news/article.php?storyid=99

Espero que isso lhe ajude.

[]s
Fábio Telles

Em 14/05/07, G. A. S <[EMAIL PROTECTED]> escreveu:

Aproveitando... pessoal, como faço, no postgresql para mover uma tabela de
uma TableSpace para outra.
Tenho algumas tabelas na Tablespace default e estou tentando altera - la
de tablespace, mas apesar da query dar ok, qdo. consulto na pg_tables ela
ainda mostra na tablespace_default.


Em 14/05/07, jfranco <[EMAIL PROTECTED]> escreveu:
>
> Beleza, Mas como eu pegaria o campo de Descrição?
>
> 
----------------------------------------------------------------------------------
>
>
> Em 14/05/07, Andrea <[EMAIL PROTECTED] > escreveu:
> >
> >  Oi J.Franco,
> >
> > Espero que esta query ajude.
> >
> > -- lista tabelas , colunas:
> >   SELECT  table_name, column_name, data_type
> >   FROM  information_schema.columns
> >
> >  E como achei que vc também ia precisar saber os índices.
> > Segue query:
> >
> > -- Relação de índices por schema/tabela
> >   SELECT n.nspname AS schema_name,
> >        bc.relname AS class_name,
> >        ic.relname AS index_name,
> >        a.attname
> >   FROM pg_namespace n,
> >        pg_class bc,             -- base class
> >        pg_class ic,             -- index class
> >        pg_index i,
> >        pg_attribute a           -- att in base
> >   WHERE bc.relnamespace = n.oid
> >      and i.indrelid = bc.oid
> >      and i.indexrelid = ic.oid
> >      and i.indkey[0] = a.attnum
> >      and i.indnatts = 1
> >      and a.attrelid = bc.oid
> >   ORDER BY schema_name, class_name, index_name, attname;
> > Atenciosamente,
> >
> >  Andréa Pereira
> >  DBA-Compesa
> >  Recife-Pe
> >
> >
> >  ----- Original Message -----
> > *From:* jfranco <[EMAIL PROTECTED]>
> > *To:* [email protected]
> > *Sent:* Friday, May 11, 2007 7:28 PM
> > *Subject:* [pgbr-geral] Consulta ao Catalogo do Pgsql
> >
> >
> > Estou reenviando a pergunta pq. o mederador rejeitou por engano.
> >
> > gostaria de saber como fazer uma consulta ao catalogo do Postgres,
> >  para obter o nome_das_tabelas,nome_da_coluna(field),tipo,descrição
> >
> > Grato.
> >
> > J.Franco
> >
> > ------------------------------
> >
> >


--
site: http://www.midstorm.org/~telles/
e-mail: [EMAIL PROTECTED]
jabber: [EMAIL PROTECTED]
sip:[EMAIL PROTECTED]
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a