From gary@icontrol.com Fri May 4 17:12:15 2007 Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 9E7179FB6B9 for ; Fri, 4 May 2007 14:12:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 28254-01 for ; Fri, 4 May 2007 14:12:11 -0300 (ADT) X-Greylist: delayed 00:06:40.477096 by SQLgrey-1.7.5 Received: from relay03.pair.com (relay03.pair.com [209.68.5.17]) by postgresql.org (Postfix) with SMTP id 6B9D69FB6A3 for ; Fri, 4 May 2007 14:12:11 -0300 (ADT) Received: (qmail 17752 invoked from network); 4 May 2007 17:05:28 -0000 Received: from 67.125.72.226 (HELO D9GKB4C1) (67.125.72.226) by relay03.pair.com with SMTP; 4 May 2007 17:05:28 -0000 X-pair-Authenticated: 67.125.72.226 From: "Gary Greenberg" To: Subject: How to get sequence info? Date: Fri, 4 May 2007 10:05:34 -0700 Message-ID: <031b01c78e6e$6e5f8910$aa0a3c0a@D9GKB4C1> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_031C_01C78E33.C200B110" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AceObm2/KYHJUl9DSsiusCZeTwGb8A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/12 X-Sequence-Number: 17002 This is a multi-part message in MIME format. ------=_NextPart_000_031C_01C78E33.C200B110 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I need to find out what sequences were created in the database. Does anyone know how to do it? I can get info on tables, keys, columns from DatabaseMetadata, but I don't see any means to retrieve sequence info. If you know how, please give me a tip. Regards, Gary ------=_NextPart_000_031C_01C78E33.C200B110 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

I need to find out what sequences were created in the database.

Does anyone know how to do it? =

I can get info on tables, keys, columns from = DatabaseMetadata, but I don’t see any means to retrieve sequence = info.

If you know how, please give me a = tip.

Regards,

         =    Gary

------=_NextPart_000_031C_01C78E33.C200B110-- From books@ejurka.com Fri May 4 17:18:27 2007 Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1E9229FB391 for ; Fri, 4 May 2007 14:18:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 16877-01-9 for ; Fri, 4 May 2007 14:18:24 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 3EE8F9FB374 for ; Fri, 4 May 2007 14:18:24 -0300 (ADT) Received: (qmail 15637 invoked by uid 1112); 4 May 2007 17:18:23 -0000 Date: Fri, 4 May 2007 13:18:23 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Gary Greenberg cc: pgsql-jdbc@postgresql.org Subject: Re: How to get sequence info? In-Reply-To: <031b01c78e6e$6e5f8910$aa0a3c0a@D9GKB4C1> Message-ID: References: <031b01c78e6e$6e5f8910$aa0a3c0a@D9GKB4C1> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/13 X-Sequence-Number: 17003 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