Skip site navigation (1) Skip section navigation (2)

Re: Faster StrNCpy

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Markus Schaber <schabi(at)logix-tt(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Faster StrNCpy
Date: 2006-09-29 14:59:22
Message-ID: 16166.1159541962@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Markus Schaber <schabi(at)logix-tt(dot)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

In response to

pgsql-hackers by date

Next:From: Paul B. AndersonDate: 2006-09-29 15:00:13
Subject: Re: Stored procedure array limits
Previous:From: Heikki LinnakangasDate: 2006-09-29 14:55:20
Subject: Re: Block B-Tree concept

pgsql-patches by date

Next:From: markDate: 2006-09-29 20:42:39
Subject: Re: Faster StrNCpy
Previous:From: Markus SchaberDate: 2006-09-29 09:21:21
Subject: Re: Faster StrNCpy

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group