Re: Fixed width rows faster? - Mailing list pgsql-performance

From Tom Lane
Subject Re: Fixed width rows faster?
Date
Msg-id 18296.1078606346@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fixed width rows faster?  ("Eric Jain" <Eric.Jain@isb-sib.ch>)
List pgsql-performance
"Eric Jain" <Eric.Jain@isb-sib.ch> writes:
> The main reason why I am still using VARCHAR rather than TEXT in many
> places is to ensure that the column can be indexed. Postgres, it seems,
> refuses to insert a string that is longer than some value into an
> indexed column, and I'll rather have such errors flagged while inserting
> a row rather than while rebuilding an index after having inserted lots
> of rows.

This is bogus reasoning.  The limit on index entry length will not
change when you rebuild the index.

            regards, tom lane

pgsql-performance by date:

Previous
From: John Siracusa
Date:
Subject: Re: Feature request: smarter use of conditional indexes
Next
From: Tom Lane
Date:
Subject: Re: Feature request: smarter use of conditional indexes