Re: SQL - planet redundant data - Mailing list pgsql-general

From Tom Lane
Subject Re: SQL - planet redundant data
Date
Msg-id 441.1126240877@sss.pgh.pa.us
Whole thread Raw
In response to SQL - planet redundant data  (Poul Jensen <flyvholm@gfy.ku.dk>)
List pgsql-general
Poul Jensen <flyvholm@gfy.ku.dk> writes:
> One thought: PostgreSQL adds to every table a system column tableoid
> containing a constant value. Is that value really stored 1,000 times for
> a 1,000-row table? Or...?

No, tableoid is sort of a virtual column ... it doesn't exist on disk.
When you query it you get a value fetched from the internal data
structure representing the table.

There is plenty of *real* overhead per row, mind you, but tableoid isn't
part of it.  You can read some details here:
http://developer.postgresql.org/docs/postgres/storage-page-layout.html

            regards, tom lane

pgsql-general by date:

Previous
From: Bruno Wolff III
Date:
Subject: Re: SQL - planet redundant data
Next
From: Joost Kraaijeveld
Date:
Subject: Is this a bug or am I doing something wrong?