2009/9/30 Fernando Maia <[email protected]>:
> Eu sei dessa alteração no pg_config_manual.h, mas não sei se fiz certo... o
> que eu fiz foi o seguinte: baixei o postgres.tar.gz alterei o
> pg_config_manual.h e compilei e instalei o postgres... mas não resolveu meu
> problema.

Então colega, se você baixo o Postgres, alterou o arquivo pg_config_manual.h
depois configurou, compilou, instalou e criou o cluster com initdb,
não deveria dar problemas.

Eu recomendo dar uma revisada nos passos que você seguiu.

Se você já tiver feito as operações acima sem antes ter alterado o pg_config,
você vai precisar configurar, compilar, instalar e criar um novo
cluster com o initdb.

Os comandos abaixo para criar uma tabela e um índice com 40 colunas deu certo:

drop table if exists teste;
create table teste (
 cola integer not null, colb integer not null, colc integer not null,
cold integer not null,
 cole integer not null, colf integer not null, colg integer not null,
colh integer not null,
 coli integer not null, colj integer not null, colk integer not null,
coll integer not null,
 colm integer not null, coln integer not null, colo integer not null,
colp integer not null,
 colq integer not null, colr integer not null, cols integer not null,
colt integer not null,
 colu integer not null, colv integer not null, colw integer not null,
colx integer not null,
 coly integer not null, colz integer not null, cola2 integer not null,
colb2 integer not null,
 colc2 integer not null, cold2 integer not null, cole2 integer not
null, colf2 integer not null,
 colg2 integer not null, colh2 integer not null, coli2 integer not
null, colj2 integer not null,
 colk2 integer not null, coll2 integer not null, colm2 integer not
null, coln2 integer not null,
 colo2 integer not null, colp2 integer not null, colq2 integer not
null, colr2 integer not null,
 cols2 integer not null, colt2 integer not null, colu2 integer not
null, colv2 integer not null,
 colw2 integer not null, colx2 integer not null, coly2 integer not
null, colz2 integer not null);

create index teste_idx on teste using btree (
 cola, colb, colc, cold, cole, colf, colg, colh, coli, colj, colk,
coll, colm, coln, colo, colp,
 colq, colr, cols, colt, colu, colv, colw, colx, coly, colz, cola2,
colb2, colc2, cold2, cole2,
 colf2, colg2, colh2, coli2, colj2, colk2, coll2, colm2, coln2);

-- 
Tarcisio F. Sassara
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a