Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 231971B76BD5 for ; Thu, 26 Jan 2012 08:32:44 -0400 (AST) Received: from pmx2.univ-reims.fr ([194.57.104.168]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RqOVO-00070L-0g for pgsql-admin@postgresql.org; Thu, 26 Jan 2012 12:32:43 +0000 Received: from pmx2.univ-reims.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 161631006EDA for ; Thu, 26 Jan 2012 13:32:29 +0100 (CET) Received: from smtps.univ-reims.fr (smtps.univ-reims.fr [194.57.104.166]) by pmx2.univ-reims.fr (Postfix) with ESMTP id 0A8001006ED3 for ; Thu, 26 Jan 2012 13:32:29 +0100 (CET) Received: from [193.50.208.13] (osiris.univ-reims.fr [193.50.208.13]) (Authenticated sender: moncli01@smtps.univ-reims.fr) by smtps.univ-reims.fr (Postfix) with ESMTPSA id B28A83DE82 for ; Thu, 26 Jan 2012 13:32:27 +0100 (CET) Message-ID: <4F2147DC.1010002@univ-reims.fr> Date: Thu, 26 Jan 2012 13:32:28 +0100 From: Yannick Monclin User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: extend column limit with blocksize does not work Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.1.26.122117 X-URCA-User: moncli01 X-URCA-Host: 193.50.208.13 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/144 X-Sequence-Number: 39056 Hi, I use the query survey software "Limesurvey", when this sofware build=20 some complex survey, it's necessary to have more than 1600 columns in=20 one table. So, i have used this parameter (configure=20 --with-blocksize=3D32) to build my last postgresql (9.1.2). Compilation=20 process succeed. I create a DB with initdb (i change=20 posgresql.conf.sample --> shared_buffers =3D 32MB in order to have no=20 errors when initdb create the database, default value was not set and=20 initdb stop). I create an user and a test database, with no problem. In order to testing, i have a batch with a loop to alter table and add=20 many columns... my batch stops at 1600 columns wtih this error : ERROR: tables can have at most 1600 columns I don't understand why, it's seems me all is ok, did you have an idea ? Can i have more than 1600 columns ? According to the documentation,=20 default limit with blocksize 8kb are 250 to 1600, but with a blocksize=20 to 32Kk limits are quadrupled, it's right ? Thanks in advance, Yannick Platform : Linux debian 64b pg_controldata output : pg_control version number: 903 Catalog version number: 201105231 Database system identifier: 5701891827790346600 Database cluster state: shut down pg_control last modified: Thu 26 Jan 2012 11:52:25 AM CET Latest checkpoint location: 0/188EA08 Prior checkpoint location: 0/188E730 Latest checkpoint's REDO location: 0/188EA08 Latest checkpoint's TimeLineID: 1 Latest checkpoint's NextXID: 0/678 Latest checkpoint's NextOID: 11868 Latest checkpoint's NextMultiXactId: 1 Latest checkpoint's NextMultiOffset: 0 Latest checkpoint's oldestXID: 668 Latest checkpoint's oldestXID's DB: 1 Latest checkpoint's oldestActiveXID: 0 Time of latest checkpoint: Thu 26 Jan 2012 11:52:25 AM CET Minimum recovery ending location: 0/0 Backup start location: 0/0 Current wal_level setting: minimal Current max_connections setting: 50 Current max_prepared_xacts setting: 0 Current max_locks_per_xact setting: 64 Maximum data alignment: 8 Database block size: 32768 Blocks per segment of large relation: 32768 WAL block size: 8192 Bytes per WAL segment: 16777216 Maximum length of identifiers: 64 Maximum columns in an index: 32 Maximum size of a TOAST chunk: 8140 Date/time type storage: 64-bit integers Float4 argument passing: by value Float8 argument passing: by value --=20 Yannick Monclin Universit=E9 de Reims Champagne Ardenne