pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Gary Greenberg <gary@icontrol.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: How to get sequence info?
Date: Fri, 4 May 2007 13:18:23 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0705041315001.9306@leary.csoft.net> (raw)
In-Reply-To: <031b01c78e6e$6e5f8910$aa0a3c0a@D9GKB4C1>
References: <031b01c78e6e$6e5f8910$aa0a3c0a@D9GKB4C1>



On Fri, 4 May 2007, Gary Greenberg wrote:

> I need to find out what sequences were created in the database.
>
> Does anyone know how to do it?

Sequences are returned as tables with a TABLE_TYPE of SEQUENCE, so you can 
say:

DatabaseMetaData.getTables("%","%","%", new String[]{"SEQUENCE"});

Kris Jurka




view thread (2+ messages)

Message-ID: <Pine.BSO.4.64.0705041315001.9306@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0705041315001.9306@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0705041315001.9306@leary.csoft.net

 · 

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-jdbc@postgresql.org
  Cc: books@ejurka.com, gary@icontrol.com
  Subject: Re: How to get sequence info?
  In-Reply-To: <Pine.BSO.4.64.0705041315001.9306@leary.csoft.net>
  References: <031b01c78e6e$6e5f8910$aa0a3c0a@D9GKB4C1> <Pine.BSO.4.64.0705041315001.9306@leary.csoft.net>

* 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