pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: liuyuanyuan <liuyuanyuangogo@gmail.com>
To: pgsql-admin@postgresql.org
Subject: sql to grant privilege on sequence
Date: Mon, 14 Jul 2014 14:16:59 +0800
Message-ID: <01e701cf9f2b$408100c0$c1830240$@gmail.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi, Hackers!

I got a question about sequence SQL of pgadmin3 , such as pgAdmin3 of
PostgreSQL9.3.

I found when I GRANT privilege on sequence by pgAdmin3 tool, it's always
show me sql like:

GRANT SELECT, UPDATE ON TABLE sequence_name TO ..

Rather than:

GRANT SELECT, UPDATE ON SEQUENCE sequence_name TO ..

 

For example:

When I use pgAdmin3 TO create a sequence, I input SEQUENCE NAME - seq1 ,and
add privilege SELECT to public, 



Then the SQL shows: GRANT .. ON TABLE .



 

 

I checked the documentation of PostgreSQL 9.3 (see
http://www.postgresql.org/docs/9.3/interactive/sql-grant.html),

Then I know the privileges grant on sequence are only a part of that on
table.

Then I want to know, why to use GRANT ON TABLE ? why not to use GRANT ON
SEQUENCE ?

 

Regards,

Yours

Jasmine

 

 

July 14, 2014

 

Attachments:

image005.jpg (image/jpeg, 13.5K) download view image
image006.jpg (image/jpeg, 18.2K) download view image
image008.jpg (image/jpeg, 12.7K) download view image
image012.jpg (image/jpeg, 26.5K) download view image

view thread (2+ messages)  latest in thread

Message-ID: <01e701cf9f2b$408100c0$c1830240$@gmail.com>
Permalink:  ../01e701cf9f2b$408100c0$c1830240$@gmail.com/
Also on:    postgresql.org/message-id/01e701cf9f2b$408100c0$c1830240$@gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: liuyuanyuangogo@gmail.com
  Subject: Re: sql to grant privilege on sequence
  In-Reply-To: <01e701cf9f2b$408100c0$c1830240$@gmail.com>

* 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