serial- sequence priveleges - Mailing list pgsql-general

From salah jubeh
Subject serial- sequence priveleges
Date
Msg-id 1331906765.98401.YahooMailNeo@web161505.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: Problem for restoure data base Postgre  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: serial- sequence priveleges
List 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  


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem for restoure data base Postgre
Next
From: Andreas Kretschmer
Date:
Subject: Re: Temporal foreign keys