Re: how to get list of sequences owned by a user/role

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Charlin Barak <charlinbarak(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: how to get list of sequences owned by a user/role
Date: 2018-03-09 22:24:41
Message-ID: f0264889-23b4-3580-0830-53e501ac3062@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 03/09/2018 02:22 PM, Adrian Klaver wrote:
> On 03/09/2018 12:08 PM, Charlin Barak wrote:
>> Hi,
>> I can find sequences owned by a schema from
>> information_schema.sequences and pg_class but how do I find sequences
>> owned by a user/role? What pg table should I be looking at?
>
> https://www.postgresql.org/docs/10/static/view-pg-sequences.html

This is new to PG 10.

For older versions:

https://www.postgresql.org/docs/9.6/static/catalog-pg-class.html

>
>>
>> Thanks.
>>
>> Charlin
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2018-03-09 23:13:48 Ability to create tables
Previous Message Adrian Klaver 2018-03-09 22:22:59 Re: how to get list of sequences owned by a user/role