Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > changing sequen...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5116 of 5419
Post > Topic >>

changing sequence in serial field

by julius@[EMAIL PROTECTED] (Julius Tuskenis) Jul 3, 2008 at 05:19 PM

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


-- 
Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
 




 4 Posts in Topic:
changing sequence in serial field
julius@[EMAIL PROTECTED]   2008-07-03 17:19:48 
Re: changing sequence in serial field
achill@[EMAIL PROTECTED]   2008-07-03 18:08:47 
Re: changing sequence in serial field
julius@[EMAIL PROTECTED]   2008-07-04 09:41:42 
Re: changing sequence in serial field
tgl@[EMAIL PROTECTED] (T  2008-07-04 11:49:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 10:29:40 CDT 2008.