Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6559807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:22:40+00:00 2026-05-25T13:22:40+00:00

To query GRANTS granted to a table I can use a query like: SELECT

  • 0

To query GRANTS granted to a table I can use a query like:

SELECT grantee, privilege_type 
FROM information_schema.role_table_grants 
WHERE table_name='mytable'

(see my old question here: Query grants for a table in postgres)

But how I query the GRANTS grated to a sequence?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:22:41+00:00Added an answer on May 25, 2026 at 1:22 pm

    I’ve looked through the source code, and I can’t find any place that exposes the ACL for sequences through the information_schema tables. (I could have missed something, though.)

    PostgreSQL does expose the ACL for sequences in the system catalog pg_class.

    SELECT relname, relacl
    FROM pg_class
    WHERE relkind = 'S'
      AND relacl is not null
      AND relnamespace IN (
          SELECT oid
          FROM pg_namespace
          WHERE nspname NOT LIKE 'pg_%'
            AND nspname != 'information_schema'
    );
    

    As far as the information_schema and standard SQL sequences go, PostgreSQL doesn’t support them.

    select feature_name, is_supported 
    from information_schema.sql_features
    where feature_name = 'Sequence generator support';
    

    PostgreSQL is nonconforming in that respect, because it exposes information_schema.sequences without returning “YES” for ‘Sequence generator support’. (That’s an observation, not a criticism of PostgreSQL.)

    But, having said all that, I couldn’t find anything in the 2003 SQL standard that exposed those privileges, either. It’s easy to find PRIVILEGE_TYPE in the definition of the ROLE_TABLE_GRANTS view, but there’s nothing like that for sequences in the standard, as far as I can tell.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I query all GRANTS granted to an object in postgres? For example
Query: SELECT DISTINCT ([Equipment List].ID) AS Expr1, [Job Assignments].Job FROM [Equipment List] LEFT JOIN
Query: SELECT StartDate, EndDate, RIGHT(Sector, 1 ) FROM Table1 ORDER BY Right(Sector, 1), StartDate
Query: SELECT * FROM Post ORDER BY Post.rating <-- Here , i want (
Query A Select id from jobs; | 55966 | | 55971 | +-------+ 10705
Query: SELECT id, name, FROM users u WHERE **id <> 0** LIMIT 50 OFFSET
i am trying trying to get a query from oracle table called sys.all_objects into
Query parameters : http://example.com/apples?order=random&color=blue Matrix parameters : http://example.com/apples;order=random;color=blue When should one use query parameters
Query query = getHibernateTemplate().getSessionFactory().getCurrentSession().createSQLQuery( select proj_employee.employee_no as employeeNo, ... .setResultTransformer(Transformers.aliasToBean(User.class)); Inside User.class does the
Query was this: CREATE TABLE `query` ( `id` int(11) NOT NULL auto_increment, `searchquery` varchar(255)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.