| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: drop table cascade doesn't drop manual sequences |
| Date: | 2007-10-14 19:39:30 |
| Message-ID: | 3360.1192390770@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Andreas Kretschmer <akretschmer(at)spamfence(dot)net> writes:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> schrieb:
>> In 8.2 and up you can use ALTER SEQUENCE ... OWNED BY ... to establish a
>> link that will make a manually created sequence go away when its "owner"
>> column is dropped. In 8.1 that aspect of SERIAL is hidden magic :-(
> Really no way to recognize with pg_* or information_schema.* ? I can't
> believe this, but i don't know a way...
Well, ALTER OWNED BY works by adding or removing a pg_depend entry, and
if you wanted to get down and dirty you could do that manually in
earlier releases. I wouldn't recommend it though ...
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Geoffrey | 2007-10-14 20:33:03 | Re: reporting tools |
| Previous Message | Andreas Kretschmer | 2007-10-14 19:19:12 | Re: drop table cascade doesn't drop manual sequences |