pgsql: There is no need for ReadBuffer() call sites to check that the

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: There is no need for ReadBuffer() call sites to check that the
Date: 2004-11-14 02:04:15
Message-ID: 20041114020415.95A373A3FE8@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
There is no need for ReadBuffer() call sites to check that the returned
buffer is valid, as ReadBuffer() will elog on error. Most of the call
sites of ReadBuffer() got this right, but this patch fixes those call
sites that did not.

Modified Files:
--------------
pgsql/src/backend/access/heap:
heapam.c (r1.180 -> r1.181)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/heap/heapam.c.diff?r1=1.180&r2=1.181)
pgsql/src/backend/commands:
analyze.c (r1.78 -> r1.79)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/analyze.c.diff?r1=1.78&r2=1.79)
sequence.c (r1.117 -> r1.118)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/sequence.c.diff?r1=1.117&r2=1.118)
trigger.c (r1.174 -> r1.175)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/trigger.c.diff?r1=1.174&r2=1.175)

Browse pgsql-committers by date

  From Date Subject
Next Message Neil Conway 2004-11-14 06:10:15 pgsql: Improvements to the PITR docs.
Previous Message User Andrewd 2004-11-13 20:17:56 pgbuildfarm - client-code: .