From: | Thara Vadakkeveedu <tharagv(at)yahoo(dot)com> |
---|---|
To: | Payal Singh <payal(at)omniti(dot)com> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: checking if sequence exists |
Date: | 2013-11-15 19:46:27 |
Message-ID: | 1384544787.83230.YahooMailNeo@web125002.mail.ne1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
The name of the sequence is hibernate_sequence. I already checked in the pg_class table under catalogs..
Thanks,
________________________________
From: Payal Singh <payal(at)omniti(dot)com>
To: Thara Vadakkeveedu <tharagv(at)yahoo(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Sent: Friday, November 15, 2013 2:38 PM
Subject: Re: [ADMIN] checking if sequence exists
\d <schema_name>.<table_name> will show you columns, their types and the modifiers. If you look in the modifiers section, you will be able to see existing sequences.
Payal Singh,
OmniTi Computer Consulting Inc.
Junior Database Architect,
Phone: 240.646.0770 x 253
On Fri, Nov 15, 2013 at 2:30 PM, Thara Vadakkeveedu <tharagv(at)yahoo(dot)com> wrote:
How can we find out if a particular sequence exists ? The idea is to check if sequence first and if it does not exist then create it...the goal is to do this when we deploy the application war...
>thanks
>tg
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2013-11-15 20:06:25 | Re: checking if sequence exists |
Previous Message | Payal Singh | 2013-11-15 19:38:50 | Re: checking if sequence exists |