From e4949f9fe55223dac74b0075b5483ad15e8e318c Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 12 Mar 1997 20:48:48 +0000 Subject: From: Dan McGuirk Subject: [HACKERS] better access control error messages This patch replaces the 'no such class or insufficient privilege' with distinct error messages that tell you whether the table really doesn't exist or whether access was denied. --- src/backend/parser/parse_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/backend/parser/parse_query.c') diff --git a/src/backend/parser/parse_query.c b/src/backend/parser/parse_query.c index 398685bed4a..2411e264974 100644 --- a/src/backend/parser/parse_query.c +++ b/src/backend/parser/parse_query.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.14 1997/02/14 23:02:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/Attic/parse_query.c,v 1.15 1997/03/12 20:47:57 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -133,7 +133,7 @@ addRangeTableEntry(ParseState *pstate, relation = heap_openr(relname); if (relation == NULL) { elog(WARN,"%s: %s", - relname, ACL_NO_PRIV_WARNING); + relname, aclcheck_error_strings[ACLCHECK_NO_CLASS]); } /* -- cgit v1.2.3