BUG #13780: Multiple commands not allowed for creating a policy. - Mailing list pgsql-bugs

From calebmeredith8@gmail.com
Subject BUG #13780: Multiple commands not allowed for creating a policy.
Date
Msg-id 20151122132327.1832.52687@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #13780: Multiple commands not allowed for creating a policy.  (Michael Paquier <michael.paquier@gmail.com>)
Re: BUG #13780: Multiple commands not allowed for creating a policy.  (Stephen Frost <sfrost@snowman.net>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      13780
Logged by:          Caleb Meredith
Email address:      calebmeredith8@gmail.com
PostgreSQL version: 9.5beta1
Operating system:   OSX
Description:

When performing a grant I can do:

    GRANT INSERT, UPDATE, DELETE ON TABLE person TO user;

But when creating a policy I can't do:

    CREATE POLICY user_write ON person FOR INSERT, UPDATE, DELETE TO user
      USING (…);

The specific error is:

    ERROR:  syntax error at or near ","
    LINE 1: ...TE POLICY user_write ON person FOR INSERT, UPDATE, ...

This doesn't seem to be intended as the GRANT specification allows it, and
CREATE POLICY supports the ALL command.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Confusing error message with too-large file in pg_basebackup
Next
From: Michael Paquier
Date:
Subject: Re: BUG #13780: Multiple commands not allowed for creating a policy.