Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGuyo-0005GG-KZ for pgsql-admin@arkaria.postgresql.org; Thu, 29 Jan 2015 19:42:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YGuyo-0001L8-3a for pgsql-admin@arkaria.postgresql.org; Thu, 29 Jan 2015 19:42:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YGuym-0001IV-MX for pgsql-admin@postgresql.org; Thu, 29 Jan 2015 19:42:16 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YGuyj-0002Ek-8X for pgsql-admin@postgresql.org; Thu, 29 Jan 2015 19:42:14 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id 95F0C123082B for ; Thu, 29 Jan 2015 11:42:12 -0800 (PST) Date: Thu, 29 Jan 2015 12:42:12 -0700 (MST) From: David G Johnston To: pgsql-admin@postgresql.org Message-ID: <1422560532253-5836010.post@n5.nabble.com> In-Reply-To: References: Subject: Re: Space taken by Null values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Basant Dagar wrote > Gurus-- >=20 > I have big flat table with 100 columns in it. For about 40% of its data, > 90 > columns would be null out of 100.And this table keeps growing and will > initial have more than 100 million rows. >=20 > =E2=80=8BMay I know, will this impact the size in anyways as I heard nul= ls will > take no or very little space in PostgreSQL unlike oracle. even for > millions > of rows with many columns in it. Is that true? >=20 >=20 > =E2=80=8BAnd if that is not true, would you recommend to make this table = into 2 > tables with the 2nd table containing those =E2=80=8B40% records with only= 10 > required columns in it? IIRC a single null occupies one bit. I would indeed expect to be able to create two tables and minimize or eliminate the number of columns defined to allow NULL. If that is what you are thinking (your question is unclear on this point) then go ahead; keeping mind that I obviously have no clue what any of those 100 columns is... David J. -- View this message in context: http://postgresql.nabble.com/Space-taken-by-N= ull-values-tp5836008p5836010.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin