Re: pg_dump SERIAL and SEQUENCE

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump SERIAL and SEQUENCE
Date: 2007-10-18 18:02:47
Message-ID: 20071018180247.GA4704@KanotixBox
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Laurent ROCHE <laurent_roche(at)yahoo(dot)com> schrieb:
> Then when I drop tab_b, the SEQUENCE tab_b_colb1_seq is not dropped, however
> when I drop tab_a, the SEQUENCE tab_a_cola1_seq is dropped too !
> I am using PG 8.1 and ALTER SEQUENCE ... OWNED BY does not exist ! ! !

Read this message: <28684(dot)1192378480(at)sss(dot)pgh(dot)pa(dot)us>

,----[ quote Tom Lane ]
| In 8.2 and up you can use ALTER SEQUENCE ... OWNED BY ... to establish
`----

You see the difference?

Regards, Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-10-18 18:04:27 Re: running postgres
Previous Message Martijn van Oosterhout 2007-10-18 18:02:31 Re: Resetting SEQUENCEs