table - sequence dependent informatio

Started by akp geekover 15 years ago3 messagesgeneral
Jump to latest
#1akp geek
akpgeek@gmail.com

Hi all -

Is there a way I can tell table - sequence dependent information.
which sequences are being used by which table?

thanks for the help

In reply to: akp geek (#1)
Re: table - sequence dependent informatio

On 31 August 2010 18:02, akp geek <akpgeek@gmail.com> wrote:

Hi all -
        Is there a way I can tell table - sequence dependent information.
 which sequences are being used by which table?
thanks for the help

Take a look at the post "Finding orphaned sequences" on this blog:

http://blog.tapoueh.org/blog.dim.html

Change the last part of the query from "WHERE a.tablename IS NULL" to
"WHERE a.tablename IS NOT NULL". That'll show you what tables your
SERIAL sequences are being used on.

--
Regards,
Peter Geoghegan

#3Dimitri Fontaine
dimitri@2ndQuadrant.fr
In reply to: Peter Geoghegan (#2)
Re: table - sequence dependent informatio

Peter Geoghegan <peter.geoghegan86@gmail.com> writes:

On 31 August 2010 18:02, akp geek <akpgeek@gmail.com> wrote:

Hi all -
        Is there a way I can tell table - sequence dependent information.
 which sequences are being used by which table?
thanks for the help

Take a look at the post "Finding orphaned sequences" on this blog:

http://blog.tapoueh.org/blog.dim.html

Or use the direct link to the article :

http://tapoueh.org/articles/blog/_Finding_orphaned_sequences.html

Regards,
--
dim