Re: [v9.2] DROP statement reworks

From: Kohei KaiGai <kaigai(at)kaigai(dot)gr(dot)jp>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, PgHacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [v9.2] DROP statement reworks
Date: 2011-10-05 18:58:46
Message-ID: CADyhKSXyG+BuEEqLrg1LPXWUj+6pGQ7g2MHFAVWyV8HRZzg7=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2011/10/5 Robert Haas <robertmhaas(at)gmail(dot)com>:
> On Wed, Oct 5, 2011 at 12:16 PM, Kohei KaiGai <kaigai(at)kaigai(dot)gr(dot)jp> wrote:
>> * The logic of check_object_validation() got included within
>>  get_relation_address(), and rewritten more smartly, as:
>>
>> +   relkind = RelationGetForm(relation)->relkind;
>> +   if ((objtype == OBJECT_INDEX         && relkind != RELKIND_INDEX) ||
>> +       (objtype == OBJECT_SEQUENCE      && relkind != RELKIND_SEQUENCE) ||
>> +       (objtype == OBJECT_TABLE         && relkind != RELKIND_RELATION) ||
>> +       (objtype == OBJECT_VIEW          && relkind != RELKIND_VIEW) ||
>> +       (objtype == OBJECT_FOREIGN_TABLE && relkind != RELKIND_FOREIGN_TABLE))
>> +       ereport(ERROR,
>> +               (errcode(ERRCODE_WRONG_OBJECT_TYPE),
>> +                errmsg("\"%s\" is not a %s",
>> +                       NameListToString(objname),
>> +                       get_object_property_typetext(objtype))));
>> +
>
> That's no good.  We've discussed it before.  It breaks translatability.
>
Hmm. It indeed makes translation hard.
I reverted this portion of the part-2 patch, as attached.
Please review the newer one, instead of the previous revision.

Thanks,
--
KaiGai Kohei <kaigai(at)kaigai(dot)gr(dot)jp>

Attachment Content-Type Size
pgsql-v9.2-drop-reworks-2.v4.1.patch application/octet-stream 45.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2011-10-05 19:00:27 Re: Action requested - Application Softblock implemented | Issue report ID341057
Previous Message Alvaro Herrera 2011-10-05 18:58:42 Re: Multixact truncation for FK locks patch