Fix argument of SetBufferCommitInfoNeedsSave at _bt_check_unique

Lists: pgsql-patches
From: Atsushi Ogawa <atsushi(dot)ogawa(at)gmail(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: Fix argument of SetBufferCommitInfoNeedsSave at _bt_check_unique
Date: 2005-10-12 16:07:57
Message-ID: 613787150510120907t6fc1097dw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

The argument of SetBufferCommitInfoNeedsSave at _bt_check_unique
might be not correct. When the next page is checked, I think that
the argument is not buf but nbuf.

regards,

--- Atsushi Ogawa

Attachment Content-Type Size
btcheckuniq.patch text/x-patch 764 bytes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Atsushi Ogawa <atsushi(dot)ogawa(at)gmail(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Fix argument of SetBufferCommitInfoNeedsSave at _bt_check_unique
Date: 2005-10-12 17:19:16
Message-ID: 2711.1129137556@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Atsushi Ogawa <atsushi(dot)ogawa(at)gmail(dot)com> writes:
> The argument of SetBufferCommitInfoNeedsSave at _bt_check_unique
> might be not correct. When the next page is checked, I think that
> the argument is not buf but nbuf.

You are right --- thanks for finding this!

regards, tom lane