Re: Sequences

From: "Gareth Kirwan" <gbjk(at)thermeoneurope(dot)com>
To: "Danny Morgan" <dmorgan(at)corpmedia(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Sequences
Date: 2002-10-30 13:12:55
Message-ID: KMEELFAKJGHIGGNIDGHDKEKMKDAA.gbjk@thermeoneurope.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

* smacks your hand for using uppercase letters *

Another big no no is not keeping your create sequences for sequences ( what
a pun ) in a file somewhere.
Otherwise you can't drop them because you don't remember what parameters
they took ( but you can always, as you say, look at system tables )
Check the \ds.
If not there try \dS, which leads you to do:
select * from pg_statio_all_sequences;
if it's still not there - give up - it's not there :-p

Gareth

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Danny Morgan
Sent: 28 October 2002 18:57
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Sequences

I have a strange dilemma. I've created a couple sequences I can't
remove.

Here is an example

I can
CREATE SEQUENCE "count1" ..........;
DROP SEQUENCE count1;

I can't
CREATE SEQUENCE "count1ListItems1" ..........;
DROP SEQUENCE count1ListItems1;

It states sequence xx does not exist.

I can \ds and it is there.

I'm using v7.2.3, is there a way to manually remove a sequence or best
yet why can't I remove a sequence that has only 16 chars?

Thanks,
Danny L. Morgan

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

  • Sequences at 2002-10-28 18:56:49 from Danny Morgan

Browse pgsql-admin by date

  From Date Subject
Next Message dima 2002-10-30 13:36:32 Re: pg_hba.conf on win32
Previous Message Denis Braekhus 2002-10-30 11:45:29 Behaviour patterns on pgsql (7.1.3)