pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thara Vadakkeveedu <tharagv@yahoo.com>
To: Payal Singh <payal@omniti.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: checking if sequence exists
Date: Fri, 15 Nov 2013 11:46:27 -0800 (PST)
Message-ID: <1384544787.83230.YahooMailNeo@web125002.mail.ne1.yahoo.com> (raw)
In-Reply-To: <CANUg7LBYTcJ34ijGDckUiENM-2UCd7PVSKbQu9ZWUxF9SVJy1g@mail.gmail.com>
References: <CA+yMuNq+unyKgCrpfmmb2WK0=toMzqrx7491n=upM8Rrj3KtwQ@mail.gmail.com>
	<CAKoxK+5DvJYF3tor6=kJKdfhpxoui6PAFjuhy9WzHjZbngGDPQ@mail.gmail.com>
	<CA+yMuNqxZu+xZeGiD-fdC+QZK-x9+zg03X8xzDpBvQcVTncYxg@mail.gmail.com>
	<1384543840.72953.YahooMailNeo@web125002.mail.ne1.yahoo.com>
	<CANUg7LBYTcJ34ijGDckUiENM-2UCd7PVSKbQu9ZWUxF9SVJy1g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

The name of the sequence is hibernate_sequence. I already checked in the pg_class table under catalogs..
Thanks,


________________________________
From: Payal Singh <payal@omniti.com>
To: Thara Vadakkeveedu <tharagv@yahoo.com> 
Cc: "pgsql-admin@postgresql.org" <pgsql-admin@postgresql.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@yahoo.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
>
> 

view thread (12+ messages)  latest in thread

Message-ID: <1384544787.83230.YahooMailNeo@web125002.mail.ne1.yahoo.com>
Permalink:  ../1384544787.83230.YahooMailNeo@web125002.mail.ne1.yahoo.com/
Also on:    postgresql.org/message-id/1384544787.83230.YahooMailNeo@web125002.mail.ne1.yahoo.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tharagv@yahoo.com, payal@omniti.com
  Subject: Re: checking if sequence exists
  In-Reply-To: <1384544787.83230.YahooMailNeo@web125002.mail.ne1.yahoo.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