sergio nogueira escreveu:
> Em que tablespace está a tabela?
> 
Funciona aqui. Qual versão?

psql (8.4beta2)
Digite "help" para ajuda.

euler=# \! mkdir /tmp/foo
euler=# create tablespace footbs location '/tmp/foo';
CREATE TABLESPACE
euler=# create table foo (a int);
CREATE TABLE
euler=# insert into foo select generate_series(1, 10);
INSERT 0 10
euler=# select tablename,tablespace from pg_tables where tablename='foo';
 tablename | tablespace
-----------+------------
 foo       |
(1 row)

euler=# alter table foo set tablespace footbs;
ALTER TABLE
euler=# select tablename,tablespace from pg_tables where tablename='foo';
 tablename | tablespace
-----------+------------
 foo       | footbs
(1 row)


-- 
  Euler Taveira de Oliveira
  http://www.timbira.com/
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a