Re: _pg_relbuf() Relation paramter

From: Kevin Grittner <kgrittn(at)ymail(dot)com>
To: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: _pg_relbuf() Relation paramter
Date: 2015-02-04 15:21:42
Message-ID: 357190883.1308406.1423063302954.JavaMail.yahoo@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> wrote:
> On 02/04/2015 04:49 PM, Kevin Grittner wrote:

>> Would anyone object to me removing the first parameter
>> (including, obviously, in all references in our code tree)?
>
> No objection, although I have to wonder why bother?

Because I ran across it while trying to work on something and
wasted time checking to see what the heck it was doing with that
parameter. Having invested that time and confirmed that it was
useless, it seemed like it was worth cleaning up to save others the
same bother.

> While you're at it, the 'size' argument to _bt_pageinit is also
> pretty useless. It's useless for PageInit() too, but that's used
> in more places, potentially even in extensions.

Well, I wasn't out searching for problems like this. I was just
going to fix the one I happened to stubbed my toe on; but if you
feel these should be changed at the same time, I could do that.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-02-04 15:23:41 Re: _pg_relbuf() Relation paramter
Previous Message Tom Lane 2015-02-04 15:10:31 Re: Getting rid of wal_level=archive and default to hot_standby + wal_senders