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:22:59
Message-ID: 876646ab-9c3b-f226-4e8b-d404c3ea27be@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

>
> Thanks.
>
> Charlin

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-03-09 22:24:41 Re: how to get list of sequences owned by a user/role
Previous Message Jerry Sievers 2018-03-09 20:24:38 Re: ERROR could not access transaction/Could not open file pg_commit_ts