Re: some strange messages

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: some strange messages
Дата
Msg-id 20030915191457.GH4405@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: some strange messages  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: some strange messages  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Sep 15, 2003 at 01:28:52AM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre@dcc.uchile.cl> writes:

> > #: utils/adt/acl.c:780
> > msgid "cannot remove the world ACL"
> 
> > What exactly is "the world ACL"?
> 
> Privileges granted to PUBLIC --- the ACL code always keeps PUBLIC
> privileges as an ACL entry, even when they are empty.  I suspect this is
> an internal error that cannot happen unless an upper software layer blew
> it, and as such does not need to be translated.  Can anyone check that?
> I'm about out of steam for tonight...

Hmm.. the code is making the assumption that this ACL is at position 0
of the ACL list.

It would be quite nice if this message needs not be translated, because
it's the only message that's left for me currently, and even if I
understand what's about I can't find a good translation.

> > #: parser/gram.y:3249
> > msgid "argument type missing (use NONE for unary operators)"
> 
> > Maybe the string between parenthesis should be in a separate errhint() ?
> 
> Or rewrite entirely.  Do you have a better wording?

Yes.  In fact something very similar appears in regproc.c, line 636:
   if (nargs == 1)       ereport(ERROR,               (errcode(ERRCODE_UNDEFINED_PARAMETER),
errmsg("missingargument"),                errhint("Use NONE to denote the missing argument of a unary operator.")));
 

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El realista sabe lo que quiere; el idealista quiere lo que sabe" (Anonimo)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Patrick Welche
Дата:
Сообщение: Re: compile warnings in CVS HEAD?
Следующее
От: Tom Lane
Дата:
Сообщение: Fixing some pg_dump issues