| От | Tom Innes |
|---|---|
| Тема | Use of Serial Datatype and Sequence Issue |
| Дата | |
| Msg-id | 3BE1EACF.CA948459@inforamp.net обсуждение исходный текст |
| Ответы |
Re: Use of Serial Datatype and Sequence Issue
Re: Use of Serial Datatype and Sequence Issue |
| Список | pgsql-general |
I am new to postgres and am in the process of creating a new database of several 100 tables. Most of the tables have a serial datatype. When the table is created psql says it is creating an implicit sequence. Yet when I drop the table and even when I drop the database the sequence is still there. When I try to re-create the table it fails beacuse the sequence already exists. This same behaviour exists for indexes. How can I get rid of any sequences or indexes that have been created. I would prefer not to explicitly drop each one. Ideally I would like to drop the table and have all related indexes, sequences dropped. Tom
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера