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

BlockNumber initialized to InvalidBuffer?

From: Markus Wanner <markus(at)bluegap(dot)ch>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: BlockNumber initialized to InvalidBuffer?
Date: 2012-07-10 13:07:56
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers

I stumbled across an initialization of a BlockNumber with InvalidBuffer,
which seems strange to me, as the values for "invalid" of the two types
are different, see attached patch.

In case the 'stack' argument passed to that function is not NULL, the
variable in question gets overridden immediately, in which case it
certainly doesn't matter. I don't know nor did I check whether or not it
can ever be NULL. So this might not be a real issue at all.


Markus Wanner

Attachment: pg-gin-strange-initialization.diff
Description: text/x-patch (850 bytes)


pgsql-hackers by date

Next:From: Bruce MomjianDate: 2012-07-10 13:20:45
Subject: Re: Use of rsync for data directory copying
Previous:From: Pavel StehuleDate: 2012-07-10 12:25:01
Subject: Re: expression evaluation with expected datatypes

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