pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julius Tuskenis <julius@nsoft.lt>
To: pgsql-admin@postgresql.org
Subject: changing sequence in serial field
Date: Thu, 03 Jul 2008 17:19:48 +0300
Message-ID: <486CE004.8000400@nsoft.lt> (raw)

Hello

I noticed, that some serial field is using wrong sequence, so I altered 
the default value pointing to the sequence I want, but now I cant delete 
currently no longer used sequence. Did I do someting wrong changing it?

PgSQL 8.1 on Gentoo Linux.


What I try to do
DROP SEQUENCE b_prekes_br_kodas_pbk_id_seq1;

Result
ERROR:  cannot drop sequence b_prekes_br_kodas_pbk_id_seq1 because table 
b_prekes_br_kodas column pbk_id requires it
HINT:  You may drop table b_prekes_br_kodas column pbk_id instead.

********** Error **********

ERROR: cannot drop sequence b_prekes_br_kodas_pbk_id_seq1 because table 
b_prekes_br_kodas column pbk_id requires it
SQL state: 2BP01
Hint: You may drop table b_prekes_br_kodas column pbk_id instead.

-- 
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050




view thread (4+ messages)  latest in thread

Message-ID: <486CE004.8000400@nsoft.lt>
Permalink:  ../486CE004.8000400@nsoft.lt/
Also on:    postgresql.org/message-id/486CE004.8000400@nsoft.lt

 · 

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: julius@nsoft.lt
  Subject: Re: changing sequence in serial field
  In-Reply-To: <486CE004.8000400@nsoft.lt>

* 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