Re: How many fields in a table are too many

Lists: pgsql-general
From: MT <m_tessier(at)sympatico(dot)ca>
To: GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: How many fields in a table are too many
Date: 2003-06-26 01:11:27
Message-ID: 20030625211127.22db5f18.m_tessier@sympatico.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi,

Just a quick question, not unrelated to my previous question, which I don't think will get answered. I have a table with 13 fields. Is that too many fields for one table.

Thanks,

Mark


From: "Jason Underdown" <jasonu(at)xmission(dot)com>
To: "MT" <m_tessier(at)sympatico(dot)ca>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 01:29:47
Message-ID: KEEBIBNJGFAENCFHMJPFKEDGCLAA.jasonu@xmission.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Generally speaking, no, not at all. Probably the question you should be
asking yourself is: "Is there a way I could move some of these fields into
other tables?" But, depending upon your application, putting your database
schema into some esoteric normal form may be overkill.

> -----Original Message-----
> From: pgsql-general-owner(at)postgresql(dot)org
> [mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of MT
> Sent: Wednesday, June 25, 2003 7:11 PM
> To: GENERAL
> Subject: [GENERAL] How many fields in a table are too many
>
>
> Hi,
>
> Just a quick question, not unrelated to my previous question,
> which I don't think will get answered. I have a table with 13
> fields. Is that too many fields for one table.
>
> Thanks,
>
> Mark
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>


From: "Mike Mascari" <mascarm(at)mascari(dot)com>
To: "MT" <m_tessier(at)sympatico(dot)ca>, "GENERAL" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 05:02:06
Message-ID: 001101c33ba0$179d5960$0102a8c0@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> Hi,
>
> Just a quick question, not unrelated to my
> previous question, which I don't think will
> get answered. I have a table with 13 fields.
> Is that too many fields for one table.

Mathematically, a binary relation represents the relevant cross
product of two domains, x and f(x):

squares table:

x f(x)
--------
0 | 0
1 | 1
2 | 4
3 | 9
...

The relational model of data just leverages this along with
predicate logic to guarantee logical consistency and extends the
traditional view of a relation to n-dimensions. So, in your
relation (table), you should have a field which represents the
"x". The "x" should have a unique index associated with it.
After all, it wouldn't make sense in the above example to have
two records for "x". The other non-key fields should represent
the f(x), g(x), h(x). IOW, they should be dependent upon the
key, the whole key, and nothing but the key. If that is not the
case, you have some normalizing to do...

Hope that helps,

Mike Mascari
mascarm(at)mascari(dot)com


From: <btober(at)seaworthysys(dot)com>
To: <m_tessier(at)sympatico(dot)ca>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 07:17:12
Message-ID: 65097.66.212.203.144.1056611832.squirrel@$HOSTNAME
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> I have a table with 13 fields. Is that
> too many fields for one table.
> Mark
>

Thirteen? No way. I've got you beat with 21:

person_id
place_id
title_id
last_name
first_name
middle_name
gender_id
birth_year
birth_month
birth_day
deceased_year
deceased_month
deceased_day
marital_status_id
education_level
e_mail_address
social_security_no
last_update_date
updated_by
username
photograph

~B


From: "Kallol Nandi" <kallol(dot)nandi(at)indussoft(dot)com>
To: "Pgsql-General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 07:28:11
Message-ID: NBEDKIHMDKLGDCDIJLMMKELNCAAA.kallol.nandi@indussoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


Folling are the limitations of PostgreSQL:
Maximum size for a database Unlimited (4 TB databases exist)
Maximum size for a table 16 TB on all operating systems
Maximum size for a row 1.6 TB
Maximum size for a field 1 GB
Maximum number of rows in a table Unlimited
Maximum number of columns in a table 250 - 1600 depending on column types
Maximum number of indexes on a table Unlimited

Of course, these are not actually unlimited, but limited to available disk
space and memory/swap space. Performance may suffer when these values get
unusually large.

The maximum table size of 16 TB does not require large file support from the
operating system. Large tables are stored as multiple 1 GB files so file
system size limits are not important.

The maximum table size and maximum number of columns can be increased if the
default block size is increased to 32k.

Regards,
Kallol.

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of
btober(at)seaworthysys(dot)com
Sent: Thursday, June 26, 2003 12:47 PM
To: m_tessier(at)sympatico(dot)ca
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] How many fields in a table are too many

> I have a table with 13 fields. Is that
> too many fields for one table.
> Mark
>

Thirteen? No way. I've got you beat with 21:

person_id
place_id
title_id
last_name
first_name
middle_name
gender_id
birth_year
birth_month
birth_day
deceased_year
deceased_month
deceased_day
marital_status_id
education_level
e_mail_address
social_security_no
last_update_date
updated_by
username
photograph

~B

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html


From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: btober(at)seaworthysys(dot)com
Cc: m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 07:28:19
Message-ID: 20030626072819.GD26472@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thu, Jun 26, 2003 at 03:17:12AM -0400, btober(at)seaworthysys(dot)com wrote:
> > I have a table with 13 fields. Is that
> > too many fields for one table.
> > Mark
> >
>
> Thirteen? No way. I've got you beat with 21:

Pfft! Is *that* all? I've got a table with 116 fields. Very soon we'll be
upgrading to 7.3 and we can them merrily DROP COLUMN half of them. Until
then...

The original developers didn't really have a concept of storing different
info in different tables.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> "the West won the world not by the superiority of its ideas or values or
> religion but rather by its superiority in applying organized violence.
> Westerners often forget this fact, non-Westerners never do."
> - Samuel P. Huntington


From: <btober(at)seaworthysys(dot)com>
To: <kleptog(at)svana(dot)org>
Cc: <m_tessier(at)sympatico(dot)ca>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 07:44:51
Message-ID: 65080.66.212.203.144.1056613491.squirrel@$HOSTNAME
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


> On Thu, Jun 26, 2003 at 03:17:12AM -0400, btober(at)seaworthysys(dot)com
> wrote:
>> > I have a table with 13 fields. Is that
>> > too many fields for one table.
>> > Mark
>> >
>>
>> Thirteen? No way. I've got you beat with 21:
>
> Pfft! Is *that* all? I've got a table with 116 fields.

I *knew* a number of these responses would be forthcoming... :)

~Berend Tober


From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 07:49:09
Message-ID: 3EFAF2CD.16911.34969AC@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On 26 Jun 2003 at 3:44, btober(at)seaworthysys(dot)com wrote:
> > On Thu, Jun 26, 2003 at 03:17:12AM -0400, btober(at)seaworthysys(dot)com
> > wrote:
> >> > I have a table with 13 fields. Is that
> >> > too many fields for one table.
> >> > Mark
> >> Thirteen? No way. I've got you beat with 21:
> > Pfft! Is *that* all? I've got a table with 116 fields.
> I *knew* a number of these responses would be forthcoming... :)

I remember somebody posting a database schema with 500 fields.

Don't worry as long as it works. When you have problems, post it on
performance. First advice you would get is to normalize it..:-)

Bye
Shridhar

--
We have phasers, I vote we blast 'em! -- Bailey, "The Corbomite Maneuver",
stardate 1514.2


From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Mike Mascari <mascarm(at)mascari(dot)com>
Cc: MT <m_tessier(at)sympatico(dot)ca>, GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 11:31:42
Message-ID: 20030626113142.GA6568@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thu, Jun 26, 2003 at 01:02:06 -0400,
Mike Mascari <mascarm(at)mascari(dot)com> wrote:
> > Hi,
> >
> > Just a quick question, not unrelated to my
> > previous question, which I don't think will
> > get answered. I have a table with 13 fields.
> > Is that too many fields for one table.
>
> Mathematically, a binary relation represents the relevant cross
> product of two domains, x and f(x):

A binary relation is a subset of the cross product of two sets.
This is more general than using x and f(x) since this implies some
restrictions on the subset (namely that there is only one tuple
with a specific member of x in the x part of the tuple).


From: Jonathan Bartlett <johnnyb(at)eskimo(dot)com>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: btober(at)seaworthysys(dot)com, <m_tessier(at)sympatico(dot)ca>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 13:24:53
Message-ID: Pine.GSU.4.44.0306260623150.9057-100000@eskimo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> The original developers didn't really have a concept of storing different
> info in different tables.

That kind of stuff drives me nuts. Where do people get their CS degrees?
It took me less that 2 days to teach our ARTISTS how to construct
fully-normalized tables (it's a long story as to why I was doing this,
but you get the picture). Sorry for the rant. Sometimes I can't help it.

Jon


From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: <btober(at)seaworthysys(dot)com>, <kleptog(at)svana(dot)org>
Cc: <m_tessier(at)sympatico(dot)ca>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 19:33:51
Message-ID: 200306261233.51246.scrawford@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thursday 26 June 2003 12:44 am, btober(at)seaworthysys(dot)com wrote:
> > On Thu, Jun 26, 2003 at 03:17:12AM -0400, btober(at)seaworthysys(dot)com
> >
> > wrote:
> >> > I have a table with 13 fields. Is that
> >> > too many fields for one table.
> >> > Mark
> >>
> >> Thirteen? No way. I've got you beat with 21:
> >
> > Pfft! Is *that* all? I've got a table with 116 fields.
>
> I *knew* a number of these responses would be forthcoming... :)
>

Of course they would. :)

As long as we are playing "who's is biggest", I have one with 900+
attributes (normalized) but there is a big warning - if you have a
query that returns hundreds of columns it will be very, very slow.
Slow as in tens of seconds to do a "select * from fattable" when
fattable has <1000 records.

Tom Lane looked at the profile data I sent and had the issue added to
the TODO list some time back. Check the archives for "Terrible
performance on wide selects" if you are interested. I believe the
problem is still on the TODO list under the category of "caching".

Cheers,
Steve


From: <btober(at)seaworthysys(dot)com>
To: <scrawford(at)pinpointresearch(dot)com>
Cc: <btober(at)seaworthysys(dot)com>, <kleptog(at)svana(dot)org>, <m_tessier(at)sympatico(dot)ca>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-26 20:03:20
Message-ID: 64479.216.238.112.88.1056657800.squirrel@$HOSTNAME
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


> On Thursday 26 June 2003 12:44 am, btober(at)seaworthysys(dot)com wrote:
>> > On Thu, Jun 26, 2003 at 03:17:12AM -0400, btober(at)seaworthysys(dot)com
>> >
>> > wrote:
>> >> > I have a table with 13 fields. Is that
>> >> > too many fields for one table.
>> >> > Mark
>> >>
>> >> Thirteen? No way. I've got you beat with 21:
>> >
>> > Pfft! Is *that* all? I've got a table with 116 fields.
>>
>
> As long as we are playing "who's is biggest", I have one with 900+
> attributes (normalized) but there is a big warning - if you have a
> query that returns hundreds of columns it will be very, very slow.
> Slow as in tens of seconds to do a "select * from fattable" when
> fattable has <1000 records.
>

Is the SELECT * the only circumstance? That is, if you specify a small
number of columns, does the response improve even though the table
actually has that large number of columns but is only be asked to supply
a column-limited result set? What about when you limit the rows but not
the columns with a WHERE clause? And of course the last case when you
limit both rows and columns?

~Berend Tober


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: btober(at)seaworthysys(dot)com
Cc: scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 02:40:07
Message-ID: 23503.1056681607@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

<btober(at)seaworthysys(dot)com> writes:
>> As long as we are playing "who's is biggest", I have one with 900+
>> attributes (normalized) but there is a big warning - if you have a
>> query that returns hundreds of columns it will be very, very slow.

> Is the SELECT * the only circumstance? That is, if you specify a small
> number of columns, does the response improve even though the table
> actually has that large number of columns but is only be asked to supply
> a column-limited result set?

IIRC, the worst problems that Steve's profile exposed were associated
with large numbers of columns in a SELECT result --- there are some
doubly nested loops that take time O(N^2) in the number of columns.
But I would not be surprised if some of those loops get invoked on the
underlying table, too, depending on what your query looks like exactly.

This is all eminently fixable, it's just a matter of someone finding
some round tuits ... for most people it doesn't seem like a
high-priority problem, since you won't notice it till you get into the
hundreds of columns ...

regards, tom lane


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 02:47:10
Message-ID: 200306270247.h5R2lAo06422@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


Added to TODO:

* Improve performance for queries with many columns

We already have an item for tables with many columsn.

---------------------------------------------------------------------------

Tom Lane wrote:
> <btober(at)seaworthysys(dot)com> writes:
> >> As long as we are playing "who's is biggest", I have one with 900+
> >> attributes (normalized) but there is a big warning - if you have a
> >> query that returns hundreds of columns it will be very, very slow.
>
> > Is the SELECT * the only circumstance? That is, if you specify a small
> > number of columns, does the response improve even though the table
> > actually has that large number of columns but is only be asked to supply
> > a column-limited result set?
>
> IIRC, the worst problems that Steve's profile exposed were associated
> with large numbers of columns in a SELECT result --- there are some
> doubly nested loops that take time O(N^2) in the number of columns.
> But I would not be surprised if some of those loops get invoked on the
> underlying table, too, depending on what your query looks like exactly.
>
> This is all eminently fixable, it's just a matter of someone finding
> some round tuits ... for most people it doesn't seem like a
> high-priority problem, since you won't notice it till you get into the
> hundreds of columns ...
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 03:07:06
Message-ID: 23732.1056683226@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Added to TODO:
> * Improve performance for queries with many columns
> We already have an item for tables with many columsn.

That one's a duplicate then.

regards, tom lane


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 03:12:55
Message-ID: 200306270312.h5R3Cta08940@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


Is the issue of many columns in a tuple the same issue as a SELECT
having many columns?

---------------------------------------------------------------------------

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Added to TODO:
> > * Improve performance for queries with many columns
> > We already have an item for tables with many columsn.
>
> That one's a duplicate then.
>
> regards, tom lane
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 04:04:31
Message-ID: 24652.1056686671@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Is the issue of many columns in a tuple the same issue as a SELECT
> having many columns?

I believe all the same inefficiencies need to be fixed whichever
way you look at it. Probably "many columns in SELECT" is the more
accurate description though.

regards, tom lane


From: Tony Grant <tony(at)tgds(dot)net>
To: postgres list <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 06:00:50
Message-ID: 1056693649.5188.30.camel@vaio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

There is an article on normalisation at IBM developer works for all
those who need a primer on table normalisation.

I learnt this from, would you believe, "dBase Mac" by Jim Heid when I
was one of the two users in the world running that version in 1988-1989
=:-D

I recomend "Database Application Programming with Linux" Wiley. There
are some good table design chapters even for non Linux people.

Good database design helps make PostgreSQL run fast.

Cheers

Tony Grant
--
www.tgds.net Library management software toolkit,
redhat linux on Sony Vaio C1XD,
Dreamweaver MX with Tomcat and PostgreSQL


From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: <btober(at)seaworthysys(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 18:31:57
Message-ID: 200306271131.57647.scrawford@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thursday 26 June 2003 1:03 pm, btober(at)seaworthysys(dot)com wrote:
<snip>
> > As long as we are playing "who's is biggest", I have one with
> > 900+ attributes (normalized) but there is a big warning - if you
> > have a query that returns hundreds of columns it will be very,
> > very slow. Slow as in tens of seconds to do a "select * from
> > fattable" when fattable has <1000 records.
>
> Is the SELECT * the only circumstance? That is, if you specify a
> small number of columns, does the response improve even though the
> table actually has that large number of columns but is only be
> asked to supply a column-limited result set? What about when you
> limit the rows but not the columns with a WHERE clause? And of
> course the last case when you limit both rows and columns?

It's the number of columns in the result, not the width of the table.
Speed is also substantially influenced by whether the returned
columns are fixed or variable width (variable is slower) and where
the variable columns appear (earlier is worse).

Selecting a single column from a wide table or even array element 1000
from an array is fast. For example on my slow machine selecting array
element 600 from an array with a limit of 100 rows takes 0.02 seconds
but selecting elements 1-600 takes 20 seconds as does selecting
element 1 600 times (select a[1],a[1],a[1]...). Whether you select
the first, middle or last field/array element does not impact the
query speed much.

You can see the effect with a 2 column table:
create table foo (i int, x text)
and add some data.

On my test (1000 rows):

Single field:
select i from foo: 10ms
select t from foo: 10ms

Int field 600 times:
select i,i,i,i...(600 times) from foo: 2400ms

Text field 600 times:
select t,t,t,t...(600 times) from foo: 6500ms

599 ints and a text:
select i,i,i,i...(599 times), t from foo: 2500ms

Text and then 599 ints:
select t,i,i,i...(599 times) from foo: 6400ms

Cheers,
Steve


From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-27 18:35:29
Message-ID: 200306271135.29674.scrawford@pinpointresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

> I believe all the same inefficiencies need to be fixed whichever
> way you look at it. Probably "many columns in SELECT" is the more
> accurate description though.

Definitely SELECT, see my response to Berend (I responded to him
before I saw this post).

Cheers,
Steve


From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 15:05:51
Message-ID: 3EFDAECF.1010805@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> Is the issue of many columns in a tuple the same issue as a SELECT
>> having many columns?
>
> I believe all the same inefficiencies need to be fixed whichever
> way you look at it. Probably "many columns in SELECT" is the more
> accurate description though.

Together with the recent discussions about attribute reordering, it'd
make sense, if we have a "resentation order" different from the actual
physical tuple layout, that the table starts with all variable length
fields at the end. This would give a better utilization of attribute
offset caching.

Don't know though, if this counts for much of the suffering.

Jan

>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 17:38:26
Message-ID: 200306281738.h5SHcQP05772@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


Is this a TODO?

When columns can be reordered, move varlena columns to the end?

---------------------------------------------------------------------------

Jan Wieck wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> Is the issue of many columns in a tuple the same issue as a SELECT
> >> having many columns?
> >
> > I believe all the same inefficiencies need to be fixed whichever
> > way you look at it. Probably "many columns in SELECT" is the more
> > accurate description though.
>
> Together with the recent discussions about attribute reordering, it'd
> make sense, if we have a "resentation order" different from the actual
> physical tuple layout, that the table starts with all variable length
> fields at the end. This would give a better utilization of attribute
> offset caching.
>
> Don't know though, if this counts for much of the suffering.
>
>
> Jan
>
> >
> > regards, tom lane
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>
>
>
> --
> #======================================================================#
> # It's easier to get forgiveness for being wrong than for being right. #
> # Let's break this rule - forgive me. #
> #================================================== JanWieck(at)Yahoo(dot)com #
>
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 17:43:32
Message-ID: 19148.1056822212@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Is this a TODO?
> When columns can be reordered, move varlena columns to the end?

Yeah, if it's not in there already. I remember seeing some Berkeley-era
comments speculating that this would be a good thing to do. Not sure if
they're still in the code, or

I believe that really what you want is fixed-width NOT NULL columns
first, then fixed-width nullable, then var-width. This ordering will
improve the odds of actually being able to use the fixed offset for
a particular column.

regards, tom lane


From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Jan Wieck <JanWieck(at)Yahoo(dot)com>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 17:58:13
Message-ID: 20030628175813.GC10521@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Sat, Jun 28, 2003 at 01:43:32PM -0400, Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Is this a TODO?
> > When columns can be reordered, move varlena columns to the end?
>
> I believe that really what you want is fixed-width NOT NULL columns
> first, then fixed-width nullable, then var-width. This ordering will
> improve the odds of actually being able to use the fixed offset for
> a particular column.

This means that when you do ALTER TABLE ... SET/DROP NOT NULL the table
may have to be completely rewritten? Altering the physical order is
sure to provoke a rewrite, but I think people will expect a change in
constraints to be a fast operation.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
Essentially, you're proposing Kevlar shoes as a solution for the problem
that you want to walk around carrying a loaded gun aimed at your foot.
(Tom Lane)


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 18:04:57
Message-ID: 200306281804.h5SI4vH08131@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > Is this a TODO?
> > When columns can be reordered, move varlena columns to the end?
>
> Yeah, if it's not in there already. I remember seeing some Berkeley-era
> comments speculating that this would be a good thing to do. Not sure if
> they're still in the code, or
>
> I believe that really what you want is fixed-width NOT NULL columns
> first, then fixed-width nullable, then var-width. This ordering will
> improve the odds of actually being able to use the fixed offset for
> a particular column.

Added to TODO:

* Automatically place fixed-width, NOT NULL columns first in a
table

I like the idea of putting NOT NULL before NULL columns.

However, I am not sure how useful NOT NULL is in practice because there
are lots of columns that don't specify NOT NULL but have mostly nulls or
mostly non-nulls, which kills our caching --- what I was hoping to do
some day was to cache the null bitmask and offsets of the previous tuple
and use those if the new tuple has the same null bitmask as the previous
tuple.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jan Wieck <JanWieck(at)Yahoo(dot)com>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 18:06:07
Message-ID: 200306281806.h5SI67I08307@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Alvaro Herrera wrote:
> On Sat, Jun 28, 2003 at 01:43:32PM -0400, Tom Lane wrote:
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > > Is this a TODO?
> > > When columns can be reordered, move varlena columns to the end?
> >
> > I believe that really what you want is fixed-width NOT NULL columns
> > first, then fixed-width nullable, then var-width. This ordering will
> > improve the odds of actually being able to use the fixed offset for
> > a particular column.
>
> This means that when you do ALTER TABLE ... SET/DROP NOT NULL the table
> may have to be completely rewritten? Altering the physical order is
> sure to provoke a rewrite, but I think people will expect a change in
> constraints to be a fast operation.

I don't think we would change any physical ordering with ALTER TABLE ---
just do it when the table is created, if possible.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>, Jan Wieck <JanWieck(at)Yahoo(dot)com>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 18:21:57
Message-ID: 23551.1056824517@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Alvaro Herrera wrote:
>> This means that when you do ALTER TABLE ... SET/DROP NOT NULL the table
>> may have to be completely rewritten?

> I don't think we would change any physical ordering with ALTER TABLE ---
> just do it when the table is created, if possible.

Right, I was just thinking of this as an optimization we'd apply during
initial table creation. Renumbering columns later on would be a huge
mess, far more work than the optimization is worth.

regards, tom lane


From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 18:27:42
Message-ID: 3EFDDE1E.60801@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Alvaro Herrera wrote:
> On Sat, Jun 28, 2003 at 01:43:32PM -0400, Tom Lane wrote:
>> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
>> > Is this a TODO?
>> > When columns can be reordered, move varlena columns to the end?
>>
>> I believe that really what you want is fixed-width NOT NULL columns
>> first, then fixed-width nullable, then var-width. This ordering will
>> improve the odds of actually being able to use the fixed offset for
>> a particular column.
>
> This means that when you do ALTER TABLE ... SET/DROP NOT NULL the table
> may have to be completely rewritten? Altering the physical order is
> sure to provoke a rewrite, but I think people will expect a change in
> constraints to be a fast operation.
>

I said "... table starts with ...", I said nothing about physically
reordering an existing table.

All we where talking about is uncoupling the order in which attributes
of a relation appear if automatically expanded from "SELECT * ...".
Currently, they are tied to the order of the physical tuple layout,
which in turn is the result of the original order at CREATE TABLE, plus
added columns at the end and dropped ones taken out.

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 18:43:07
Message-ID: 24818.1056825787@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> However, I am not sure how useful NOT NULL is in practice because there
> are lots of columns that don't specify NOT NULL but have mostly nulls or
> mostly non-nulls, which kills our caching --- what I was hoping to do
> some day was to cache the null bitmask and offsets of the previous tuple
> and use those if the new tuple has the same null bitmask as the previous
> tuple.

We already cache fairly effectively in cases where there are no nulls.
I'm not sure it's worth trying to do something with the idea that two
adjacent tuples might have nulls in the same places.

regards, tom lane


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, btober(at)seaworthysys(dot)com, scrawford(at)pinpointresearch(dot)com, kleptog(at)svana(dot)org, m_tessier(at)sympatico(dot)ca, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 19:17:40
Message-ID: 200306281917.h5SJHeX14044@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > However, I am not sure how useful NOT NULL is in practice because there
> > are lots of columns that don't specify NOT NULL but have mostly nulls or
> > mostly non-nulls, which kills our caching --- what I was hoping to do
> > some day was to cache the null bitmask and offsets of the previous tuple
> > and use those if the new tuple has the same null bitmask as the previous
> > tuple.
>
> We already cache fairly effectively in cases where there are no nulls.
> I'm not sure it's worth trying to do something with the idea that two
> adjacent tuples might have nulls in the same places.

I was thinking of trying it and seeing how often it would be a win,
because right now, when we hit a null, our cache is dead.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: weigelt(at)metux(dot)de
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-28 21:52:14
Message-ID: 20030628215214.GA9442@metux.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Sat, Jun 28, 2003 at 02:21:57PM -0400, Tom Lane wrote:

<snip>

> Right, I was just thinking of this as an optimization we'd apply during
> initial table creation. Renumbering columns later on would be a huge
> mess, far more work than the optimization is worth.
perhaps it could be done on VACUUM ?

cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux ITS
Webhosting ab 5 EUR/Monat. UUCP, rawIP und vieles mehr.

phone: +49 36207 519931 www: http://www.metux.de/
fax: +49 36207 519932 email: contact(at)metux(dot)de
cellphone: +49 174 7066481 smsgate: sms(dot)weigelt(at)metux(dot)de
---------------------------------------------------------------------
Diese Mail wurde mit UUCP versandt. http://www.metux.de/uucp/


From: elein <elein(at)varlena(dot)com>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org, elein(at)varlena(dot)com
Subject: Re: How many fields in a table are too many
Date: 2003-06-29 03:39:54
Message-ID: 200306282039.54073.elein@varlena.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general


Re: attribute ordering

The column presentation issue maybe should be
cross referenced with the problem with rowtypes
where the referenced table has dropped columns.
This is the one where in plpgsql you do a select *
into a rowtype of a table with dropped columns
you get a mismatch on the types. Implementing
the presentation ordering will probably give a
solution to the rowtype problem.

elein

On Saturday 28 June 2003 08:05, Jan Wieck wrote:
> Tom Lane wrote:
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> >> Is the issue of many columns in a tuple the same issue as a SELECT
> >> having many columns?
> >
> > I believe all the same inefficiencies need to be fixed whichever
> > way you look at it. Probably "many columns in SELECT" is the more
> > accurate description though.
>
> Together with the recent discussions about attribute reordering, it'd
> make sense, if we have a "resentation order" different from the actual
> physical tuple layout, that the table starts with all variable length
> fields at the end. This would give a better utilization of attribute
> offset caching.
>
> Don't know though, if this counts for much of the suffering.
>
>
> Jan
>
> >
> > regards, tom lane
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 6: Have you searched our list archives?
> >
> > http://archives.postgresql.org
>
>
>
> --
> #======================================================================#
> # It's easier to get forgiveness for being wrong than for being right. #
> # Let's break this rule - forgive me. #
> #================================================== JanWieck(at)Yahoo(dot)com #
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
>

--
=============================================================
elein(at)varlena(dot)com Database Consulting www.varlena.com
PostgreSQL General Bits http:/www.varlena.com/GeneralBits/
"Free your mind the rest will follow" -- en vogue


From: Toni Schlichting <toni(at)schlichting(dot)net>
To: MT <m_tessier(at)sympatico(dot)ca>
Cc: GENERAL <pgsql-general(at)postgresql(dot)org>
Subject: Re: How many fields in a table are too many
Date: 2003-06-29 08:41:36
Message-ID: 3EFEA640.7080409@schlichting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

Hi Mark,

actually there is a simple way to determine this.

create an entity relationship model, try to build a 3rd normal form,
look on what the users/customers are really doing, not only what data
they are dealing with and finally break up the 3rd NF again.

A table with too many columns is as bad as a database with too many
tables. If you can't keep the overview, something went wrong.
Sometimes you can tune the database by tuning the datastructure.

It's good if you end up with tables that only have a few columns. But
why not twenty, if you need them, it's ok. But if you have significantly
more than this number, you should have a good reason, than it's ok as well.

What I think is more important, is that you have a tight look on the
nature of your data. Treat a number like a number and a date like a date.

Ciao, Toni

MT wrote:

>Hi,
>
>Just a quick question, not unrelated to my previous question, which I don't think will get answered. I have a table with 13 fields. Is that too many fields for one table.
>
>Thanks,
>
>Mark
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
>
>
>


From: Jan Wieck <JanWieck(at)Yahoo(dot)com>
To: elein(at)varlena(dot)com
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-29 13:05:17
Message-ID: 3EFEE40D.6050405@Yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

elein wrote:
> Re: attribute ordering
>
> The column presentation issue maybe should be
> cross referenced with the problem with rowtypes
> where the referenced table has dropped columns.
> This is the one where in plpgsql you do a select *
> into a rowtype of a table with dropped columns
> you get a mismatch on the types. Implementing
> the presentation ordering will probably give a
> solution to the rowtype problem.

Recompiling the function should be totally sufficient. That you mention
this as a problem indicates that you have self modifying code or are
developing on your production system. Which of them is it?

Jan

--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#================================================== JanWieck(at)Yahoo(dot)com #


From: PeterKorman <calvin-pgsql-ml(at)eigenvision(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: How many fields in a table are too many
Date: 2003-06-29 16:11:48
Message-ID: 20030629161148.GC11500@eigenvision.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-general

On Thu, Jun 26, 2003 at 01:19:09PM +0530, Shridhar Daithankar wrote:
> On 26 Jun 2003 at 3:44, btober(at)seaworthysys(dot)com wrote:
> > > On Thu, Jun 26, 2003 at 03:17:12AM -0400, btober(at)seaworthysys(dot)com
> > > wrote:
> > >> > I have a table with 13 fields. Is that
> > >> > too many fields for one table.
> > >> > Mark
> > >> Thirteen? No way. I've got you beat with 21:
> > > Pfft! Is *that* all? I've got a table with 116 fields.
> > I *knew* a number of these responses would be forthcoming... :)
>
> I remember somebody posting a database schema with 500 fields.
>
> Don't worry as long as it works. When you have problems, post it on
> performance. First advice you would get is to normalize it..:-)
>
> Bye
> Shridhar

Do normal form classifications go into negative numbers?