Re: and it's not a bunny rabbit, either - Mailing list pgsql-hackers

From Robert Haas
Subject Re: and it's not a bunny rabbit, either
Date
Msg-id AANLkTimUZ_9aU3=TG_KO5yEesrmL0ec-wZm4eO2WWxeH@mail.gmail.com
Whole thread Raw
In response to Re: and it's not a bunny rabbit, either  (Itagaki Takahiro <itagaki.takahiro@gmail.com>)
Responses Re: and it's not a bunny rabbit, either  (Christophe Pettus <xof@thebuild.com>)
Re: and it's not a bunny rabbit, either  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sun, Dec 26, 2010 at 10:44 PM, Itagaki Takahiro
<itagaki.takahiro@gmail.com> wrote:
> On Mon, Dec 27, 2010 at 12:13, Robert Haas <robertmhaas@gmail.com> wrote:
>> Could we get away with something as simple as "requested operation is
>> not supported for <plural-form-of-object-type>"?
>
> +1. If so, will we have a function to get object names something like
> GetPluralFormOfObjectType(Relation rel or char relkind) => char *  ?

In the interest of keeping things simple for translators, I was
thinking we'd just write out a string for each object type:

"requested operation is not supported for tables"
"requested operation is not supported for views"
"requested operation is not supported for indexes"

or if we go with the some-assembly required version, perhaps:

"tables do not support %s"
"views do not support %s"
"indexes do not support %s"

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


pgsql-hackers by date:

Previous
From: Itagaki Takahiro
Date:
Subject: Re: and it's not a bunny rabbit, either
Next
From: Christophe Pettus
Date:
Subject: Re: and it's not a bunny rabbit, either