Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 22CA62E0076 for ; Sat, 22 Mar 2008 01:10:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 52263-04 for ; Sat, 22 Mar 2008 01:10:03 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ag-out-0708.google.com (ag-out-0708.google.com [72.14.246.241]) by postgresql.org (Postfix) with ESMTP id 6F44B2E007C for ; Sat, 22 Mar 2008 01:10:03 -0300 (ADT) Received: by ag-out-0708.google.com with SMTP id 23so3427049agd.5 for ; Fri, 21 Mar 2008 21:10:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=XSHMBzbHckTdoqgWFzQ/tb0cTM4bonX3Q6GefEaHmZs=; b=pxTu9Mw5kcsiVT5aTsjp+PyL5Sw2rpgzIRC0SEfopv2iO2IU+Jt8g1R1Qdyyq5ThtqXZg3fa/rPxzXWaSOZmBEQ6pY7/CSAYz+4WLImdiv4tDNjO9fw99igfKzL8EEZcWvrU/RPVJpJcW0VK3cwvmhXnRIwQPkO7nKsTEFys4h0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=Yuhgu67o+7gT0g2aCaqmsXDtrMjFtkaUj9sd53o8uyWF8c/DLaYPmDyduSKKle2KftgCcUxHZQgR+Jc/ddW8Ubvwtds8fRfhgpVBAF6Jzu1a7mhAHmCZxPzdWQfILzmVl4vw3jgC+hjcK0EDJKpSLUNVqUAJtKmsyD47BmBJrhc= Received: by 10.100.14.2 with SMTP id 2mr10970835ann.16.1206159002784; Fri, 21 Mar 2008 21:10:02 -0700 (PDT) Received: by 10.100.105.20 with HTTP; Fri, 21 Mar 2008 21:10:02 -0700 (PDT) Message-ID: Date: Sat, 22 Mar 2008 09:40:02 +0530 From: "sathiya psql" To: pgsql-performance@postgresql.org Subject: Having MANY MANY empty columns in database MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6960_29598030.1206159002789" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200803/426 X-Sequence-Number: 29380 ------=_Part_6960_29598030.1206159002789 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All, I want some clarification in the following, In a database which we are having we have nearly 100 tables, and in 75% of the tables we have 6 columns ( INT ) as standard columns. What is standard columns, if you create a table in this database you should have some default 6 columns in there they should maintain 1. who is the owner of that read 2. when it is added 3. who is updating the record 4. when it is updated .... and other columns.... But many of the users are not doing anything with those columns, they are all empty always.... Say in that 75 % of tables, 60 % table contains nearly 1000 records always... and other 10% of tables contains less than 10000 records and 5% of table contain records nealy 5 lakh..... What i need is??? If you drop those columns we will gain any performance or not..... Definitely i know having that columns is not useful, but i want some clarification that having empty columns will make performance degradation or not.... Am using Debian, and having 1 GB RAM... I want this informations in both postgres 7.4 and 8.1 ( don't ask me to use 8.3 please, i want info in 7.4 and 8.1 )... Regards SathiyaMoorthy ------=_Part_6960_29598030.1206159002789 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi All,

I want some clarification in the following,

In a database which we are having we have nearly 100 tables, and in 75% of the tables we have 6 columns ( INT ) as standard columns. What is standard columns, if you create a table in this database you should have some default 6 columns in there they should maintain
    1. who is the owner of that read
    2. when it is added
    3. who is updating the record
    4. when it is updated .... and other columns....

But many of the users are not doing anything with those columns, they are all empty always....

Say in that 75 % of tables, 60 % table contains nearly 1000 records always...

and other 10% of tables contains less than 10000 records

and 5% of table contain records nealy 5 lakh.....

What i need is???

If you drop those columns we will gain any performance or not..... Definitely i know having that columns is not useful, but i want some clarification that having empty columns will make performance degradation or not....


Am using Debian, and having 1 GB RAM...
I want this informations in both postgres 7.4 and 8.1 ( don't ask me to use 8.3 please, i want info in 7.4 and 8.1 )...


Regards
SathiyaMoorthy
------=_Part_6960_29598030.1206159002789--