Re: refactoring comment.c - Mailing list pgsql-hackers

From Robert Haas
Subject Re: refactoring comment.c
Date
Msg-id AANLkTikJQfW9SKfreC=qhp7gxz8n88ONsbsL2pOQykz2@mail.gmail.com
Whole thread Raw
In response to Re: refactoring comment.c  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: refactoring comment.c
List pgsql-hackers
On Fri, Aug 27, 2010 at 5:35 PM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
> Robert Haas <robertmhaas@gmail.com> wrote:
>> I suppose this is unhappy because it things elog(ERROR) might
>> return?
>
> It looks more like this code uses it without initialization:
>
>        case OBJECT_INDEX:
>        case OBJECT_SEQUENCE:
>        case OBJECT_TABLE:
>        case OBJECT_VIEW:
>            relation =
>                get_relation_by_qualified_name(objtype, objname,
> lockmode);
>            address.classId = RelationRelationId;
>            address.objectId = RelationGetRelid(relation);
>            address.objectSubId = 0;
>            break;

OK, I must be missing something.  Go through that a little slower?

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: refactoring comment.c
Next
From: "Kevin Grittner"
Date:
Subject: Re: refactoring comment.c