From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | KaiGai Kohei <kaigai(at)kaigai(dot)gr(dot)jp> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: refactoring comment.c |
Date: | 2010-08-16 02:50:24 |
Message-ID: | AANLkTik2TrLYpNZJzy20L+MCX5o5vvfQQW+sj3HOpjjR@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Aug 6, 2010 at 11:15 PM, KaiGai Kohei <kaigai(at)kaigai(dot)gr(dot)jp> wrote:
> [brief review]
OK, here's an updated patch:
1. I fixed the typo Alvaro spotted.
2. I haven't done anything about moving the definition of
ObjectAddress elsewhere, as Alvaro suggested, because I'm not sure
quite where it ought to go. I still think it's a good idea, though
I'm not dead set on it, either. Suggestions?
3. I fixed the issue Kaigai Kohei spotted, regarding
LargeObjectRelationId vs. LargeObjectMetadataRelationId, by adding a
grotty hack. However, I feel that I'm not so much adding a new grotty
hack as working around an existing grotty hack which was added for
reasons I'm unclear on. Is there a pg_upgrade-related reason not to
revert the original hack instead?
4. In response to Kaigai Kohei's complaint about lockmode possibly
being NoLock, I've just added an Assert() that it isn't, in lieu of
trying to do something sensible in that case. I can't at present
think of a situation in which being able to call it that way would be
useful, and the Assert() seems like it ought to be enough warning to
anyone coming along later that they'd better think twice before
thinking that will work.
5. Since I'm hoping Tom will read this, I ran it through filterdiff. :-)
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company
Attachment | Content-Type | Size |
---|---|---|
refactor_comment-v2-context.patch | application/octet-stream | 60.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-08-16 02:54:31 | Re: DropRelFileNodeBuffers API change (was Re: [BUGS] BUG #5599: Vacuum fails due to index corruption issues) |
Previous Message | Robert Haas | 2010-08-16 02:35:10 | Re: patch: utf8_to_unicode (trivial) |