Skip to content

Commit be61bff

Browse files
committed
better error message
1 parent 8d97a99 commit be61bff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/parser.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ plpgsql_check_pragma_table(PLpgSQL_checkstate *cstate, const char *str, int line
913913
char *nsname = make_ident(_token);
914914

915915
if (strcmp(nsname, "pg_temp") != 0)
916-
elog(ERROR, "only \"pg_temp\" schema is allowed");
916+
elog(ERROR, "schema \"%s\" cannot be used in pragma \"table\" (only \"pg_temp\" schema is allowed)", nsname);
917917

918918
_token = get_token(&tstate, &token);
919919
if (!_token || (_token->value != PRAGMA_TOKEN_IDENTIF

0 commit comments

Comments
 (0)