Re: BUG #16058: show session_user shows a not clear error message - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #16058: show session_user shows a not clear error message
Date
Msg-id 20191016044112.GD2602@paquier.xyz
Whole thread Raw
In response to BUG #16058: show session_user shows a not clear error message  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
On Tue, Oct 15, 2019 at 08:26:00AM +0000, PG Bug reporting form wrote:
> Actual
> postgres=# show session_user;
> ERROR:  syntax error at or near "session_user" at character 6
> STATEMENT:  show session_user;
> ERROR:  syntax error at or near "session_user"
> LINE 1: show session_user;
>
> Expected
> postgres=# show session_user;
> ERROR:  unrecognized configuration parameter "session_user"
> STATEMENT:  show session_user;

This boils down to how we would need to handle reserved keyword
parsing for the SHOW command, which would cause reduce/reduce
conflicts with bison as it uses var_name (with ColId).  I would not
bother much with that to be honest.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #16060: JDBC - badly gets DateOffsetTime value from database
Next
From: Dave Cramer
Date:
Subject: Re: BUG #16060: JDBC - badly gets DateOffsetTime value from database