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 > Re: changing se...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 4 Topic 5116 of 5549
Post > Topic >>

Re: changing sequence in serial field

by achill@[EMAIL PROTECTED] (Achilleas Mantzios) Jul 3, 2008 at 06:08 PM

=CE=A3=CF=84=CE=B9=CF=82 Thursday 03 July 2008 17:19:48 =CE=BF/=CE=B7
Juliu=
s Tuskenis =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5:
> Hello
>=20
> I noticed, that some serial field is using wrong sequence, so I altered=
=20
> the default value pointing to the sequence I want, but now I cant
delete=
=20
> currently no longer used sequence. Did I do someting wrong changing it?
>=20
> PgSQL 8.1 on Gentoo Linux.
>=20
>=20
> What I try to do
> DROP SEQUENCE b_prekes_br_kodas_pbk_id_seq1;

try
ALTER SEQUENCE b_prekes_br_kodas_pbk_id_seq1 OWNED BY NONE;
first, adn then drop.

>=20
> Result
> ERROR:  cannot drop sequence b_prekes_br_kodas_pbk_id_seq1 because
table=
=20
> b_prekes_br_kodas column pbk_id requires it
> HINT:  You may drop table b_prekes_br_kodas column pbk_id instead.
>=20
> ********** Error **********
>=20
> ERROR: cannot drop sequence b_prekes_br_kodas_pbk_id_seq1 because table=
=20
> 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.
>=20
> --=20
> Julius Tuskenis
> Programavimo skyriaus vadovas
> UAB nSoft
> mob. +37068233050
>=20
>=20



--=20
Achilleas Mantzios

--=20
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 Sat Nov 22 17:01:09 CST 2008.