Improve a couple of error messages per suggestions from Alvaro Herrera.

This commit is contained in:
Tom Lane 2003-09-15 22:28:58 +00:00
parent 7ce5f25b5b
commit daed6f4b94
2 changed files with 6 additions and 5 deletions

View File

@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.432 2003/09/09 23:22:20 petere Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.433 2003/09/15 22:28:57 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@ -3244,7 +3244,8 @@ oper_argtypes:
{
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
errmsg("argument type missing (use NONE for unary operators)")));
errmsg("missing argument"),
errhint("Use NONE to denote the missing argument of a unary operator.")));
}
| Typename ',' Typename
{ $$ = makeList2($1, $3); }

View File

@ -10,7 +10,7 @@
* Written by Peter Eisentraut <peter_e@gmx.net>.
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.157 2003/09/11 18:30:39 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.158 2003/09/15 22:28:58 tgl Exp $
*
*--------------------------------------------------------------------
*/
@ -1540,7 +1540,7 @@ static struct config_string ConfigureNamesString[] =
{
{"unix_socket_group", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
gettext_noop("The group owner of the Unix domain socket"),
gettext_noop("The owning group of the Unix-domain socket"),
gettext_noop("(The owning user of the socket is always the user "
"that starts the server.)")
},
@ -1550,7 +1550,7 @@ static struct config_string ConfigureNamesString[] =
{
{"unix_socket_directory", PGC_POSTMASTER, CONN_AUTH_SETTINGS,
gettext_noop("The Unix-domain socket directory to listen to"),
gettext_noop("Directory where the Unix-domain socket will be created"),
NULL
},
&UnixSocketDir,