Re: Faster StrNCpy - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Faster StrNCpy
Date
Msg-id 16166.1159541962@sss.pgh.pa.us
Whole thread Raw
In response to Re: Faster StrNCpy  (Markus Schaber <schabi@logix-tt.com>)
List pgsql-hackers
Markus Schaber <schabi@logix-tt.com> writes:
> There's another disadvantage of always copying 64 bytes:
> It may be that the 64-byte range crosses a page boundary. Now guess what
> happens when this next page is not mapped -> segfault.

Irrelevant, because in all interesting cases the Name field is part of a
larger record that would stretch into that other page anyway.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Block B-Tree concept
Next
From: Jan de Visser
Date:
Subject: Re: Block B-Tree concept