Serial Vs Sequence

Поиск
Список
Период
Сортировка
От Adarsh Sharma
Тема Serial Vs Sequence
Дата
Msg-id 4D47AE50.9000608@orkash.com
обсуждение исходный текст
Ответы Re: Serial Vs Sequence  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Serial Vs Sequence  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
Dear all,

I am not able to distinct these two datatypes ( Serial and Sequence ) in
Postgresql which resembles like auto-increment in Mysql.

Which one gets priority and When ?

The only thing I am able to find is to use SERIAL because if a drop
table occurs , still SEQUENCE memory is not freed, its garbage remains.

However if we define a SERIAL column in a table , implicitly it makes a
sequence.

Could anyone Please describe me the difference and Which to Use When ?


Thanks & Regards

Adarsh Sharma

В списке pgsql-general по дате отправления:

Предыдущее
От: AI Rumman
Дата:
Сообщение: cast problem in Postgresql 9.0.1
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Serial Vs Sequence