serial- sequence priveleges

From: salah jubeh <s_jubeh(at)yahoo(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: serial- sequence priveleges
Date: 2012-03-16 14:06:05
Message-ID: 1331906765.98401.YahooMailNeo@web161505.mail.bf1.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

When creating a serial, a sequence is created automatically.
CREATE TABLE tablename ( colname SERIAL
);
CREATE SEQUENCE tablename_colname_seq;
CREATE TABLE tablename ( colname integer NOT NULL DEFAULT nextval('tablename_colname_seq')
);
ALTER SEQUENCE tablename_colname_seq OWNED BY tablename.colname;

Should not  a proper permissions based on the table privileges added to the sequence ?. For example, when a table has INSERT, UPDATE permissions on the table  to a certain user, this should be taken into account. 

Regards  

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wong, Beverly 2012-03-16 14:08:28 Windows 7 Compatibility
Previous Message Tom Lane 2012-03-16 13:36:54 Re: Problem for restoure data base Postgre