Leandro DUTRA escreveu: > 2008/5/14 jota. comm <[EMAIL PROTECTED]>: >> As constraints ficam junto com a tabela na tabelspace que você definiu. > > Não vou lembrar da sintaxe exata, mas de fato é um ponto fraco do > PostgreSQL. Algo como: > > SET DEFAULT TABLESPACE <espaço de objetos>; > > CREATE TABLE <tabela>...; > > SET DEFAULT TABLESPACE <espaço de índices>; > > ALTER TABLE <tabela> ADD CONSTRAINT <restrições>...; >
Veja em: http://www.postgresql.org/docs/8.3/interactive/sql-createtable.html "USING INDEX TABLESPACE tablespace This clause allows selection of the tablespace in which the index associated with a UNIQUE or PRIMARY KEY constraint will be created. If not specified, default_tablespace is consulted, or temp_tablespaces if the table is temporary." portanto: constraint PK_ancCodigo primary key (ancCodigo) USING INDEX TABLESPACE tbs_indices Osvaldo _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
