pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Charlin Barak <charlinbarak@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: how to get list of sequences owned by a user/role
Date: Fri, 9 Mar 2018 14:22:59 -0800
Message-ID: <876646ab-9c3b-f226-4e8b-d404c3ea27be@aklaver.com> (raw)
In-Reply-To: <CAPrg5caqz-LEJ-PzhiGQ6eS5MNJ7=-H-c1Jh_7hEM=U5gU-4WQ@mail.gmail.com>
References: <CAPrg5caqz-LEJ-PzhiGQ6eS5MNJ7=-H-c1Jh_7hEM=U5gU-4WQ@mail.gmail.com>

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.klaver@aklaver.com




view thread (3+ messages)  latest in thread

Message-ID: <876646ab-9c3b-f226-4e8b-d404c3ea27be@aklaver.com>
Permalink:  ../876646ab-9c3b-f226-4e8b-d404c3ea27be@aklaver.com/
Also on:    postgresql.org/message-id/876646ab-9c3b-f226-4e8b-d404c3ea27be@aklaver.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, charlinbarak@gmail.com
  Subject: Re: how to get list of sequences owned by a user/role
  In-Reply-To: <876646ab-9c3b-f226-4e8b-d404c3ea27be@aklaver.com>
  References: <CAPrg5caqz-LEJ-PzhiGQ6eS5MNJ7=-H-c1Jh_7hEM=U5gU-4WQ@mail.gmail.com> <876646ab-9c3b-f226-4e8b-d404c3ea27be@aklaver.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