pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: a.magdenko@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #10949: Row security feature doesn't work.
Date: Mon, 14 Jul 2014 08:57:13 +0000
Message-ID: <20140714085713.2501.3963@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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_releas...

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 <myon@debian.org>  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



view thread (2+ messages)  latest in thread

Message-ID: <20140714085713.2501.3963@wrigleys.postgresql.org>
Permalink:  ../20140714085713.2501.3963@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20140714085713.2501.3963@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: a.magdenko@gmail.com
  Subject: Re: BUG #10949: Row security feature doesn't work.
  In-Reply-To: <20140714085713.2501.3963@wrigleys.postgresql.org>
  References: <20140714085713.2501.3963@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox