Re: Index size - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Index size
Date
Msg-id 4ec3b7b3-014b-1780-12ba-41974a39e369@aklaver.com
Whole thread Raw
In response to Index size  (Samuel Williams <space.ship.traveller@gmail.com>)
Responses Re: Index size
List pgsql-general
On 11/29/2016 03:30 PM, Samuel Williams wrote:
> I'd like to understand a bit more about indexes in PG.

https://www.postgresql.org/docs/9.5/static/indexam.html

"An index is effectively a mapping from some data key values to tuple
identifiers, or TIDs, of row versions (tuples) in the index's parent
table. A TID consists of a block number and an item number within that
block (see Section 63.6). This is sufficient information to fetch a
particular row version from the table. ..."

>
> When I have a row in a table, and an index, say, for a single column,
> does that duplicate the entire row on disk? Or is there some kind of
> id lookup involved?
>
> Thanks.
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


pgsql-general by date:

Previous
From: Patrick B
Date:
Subject: Monitoring Replication - Postgres 9.2
Next
From: Michael Sheaver
Date:
Subject: "Fuzzy" Matches on Nicknames