Re: pk vs unique not null differences between 8.3.4 and 8.3.8
В списке pgsql-general по дате отправления:
| От | Ivan Sergio Borgonovo |
|---|---|
| Тема | Re: pk vs unique not null differences between 8.3.4 and 8.3.8 |
| Дата | |
| Msg-id | 20091102160441.5ec33f90@dawn.webthatworks.it обсуждение |
| Ответ на | Re: pk vs unique not null differences between 8.3.4 and 8.3.8 (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
On Mon, 02 Nov 2009 09:53:06 -0500 Tom Lane <tgl@sss.pgh.pa.us> wrote: > Ivan Sergio Borgonovo <mail@webthatworks.it> writes: > > This statement succede in 8.3.8 > > alter table shop_commerce_gift drop constraint > > shop_commerce_gift_pkey; > > but failed in 8.3.4. > > Uh, that doesn't seem to match the name of the index? Yep... that was my surprise. I don't have a time machine to be absolutely sure about what I did but I should have created a pk on both machines with a create table shop_commerce_gift( giftcode varchar primary key ... ); but in the newer pg I actually find the pk constraint... in the older I find a not null + an unique index with a different name from the pk name of the former. -- Ivan Sergio Borgonovo http://www.webthatworks.it
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера