Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X6iUk-0004cB-Sw for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jul 2014 15:48:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X6iUj-0007Vf-7V for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jul 2014 15:48:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X6c5G-0006qR-Tc for pgsql-bugs@postgresql.org; Mon, 14 Jul 2014 08:58:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X6c5D-0006fa-0d for pgsql-bugs@postgresql.org; Mon, 14 Jul 2014 08:58:05 +0000 MIME-Version: 1.0 Subject: BUG #10949: Row security feature doesn't work. To: pgsql-bugs@postgresql.org From: a.magdenko@gmail.com Date: Mon, 14 Jul 2014 08:57:13 +0000 Message-ID: <20140714085713.2501.3963@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 10949 Logged by: Alexander Magdenko Email address: a.magdenko@gmail.com PostgreSQL version: 9.4beta1 Operating system: Ubuntu 12.04 Description: Hello, I tried to install last Postgresql 9.4-beta version to check how RLS features works http://wiki.postgresql.org/wiki/Row-security I have installed 9.4 version on Ubuntu 12.04 (precise) like described here http://wiki.postgresql.org/wiki/Apt http://wiki.postgresql.org/wiki/Apt/FAQ#I_want_to_try_the_beta_version_of_the_next_PostgreSQL_release I checked that version is OK $ dpkg -l postgresql-9.4 ii postgresql-9.4 9.4~beta1-2.pgdg12.4+1 object-relational SQL database, version 9.4 server And in file /usr/share/doc/postgresql-9.4/changelog.gz first strings * Rebuild for precise-pgdg (jenkins-postgresql-9.4-source- distribution=precise-124, bzr revision 470) -- apt.postgresql.org autobuilder Fri, 30 May 2014 20:26:51 +0200 But when I created database 'mydb' with table CREATE TABLE my_order ( my_order_id bigint PRIMARY KEY, name text, descr text, owner text default current_user ); I always get syntax error for ALTER TABLE my_order SET ROW SECURITY FOR ALL TO (owner = current_user); ERROR: syntax error at or near "ROW" SQL-state: 42601 Symbol: 77 Why this syntax doesn't work in beta release? And how to install it with RLS support? We are going to include these features in production system with Postgresql soon. Any help? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs