Re: [HACKERS] alter table..drop constraint pkey, left not null un-dropped

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] alter table..drop constraint pkey, left not null un-dropped
Дата
Msg-id 28820.1494506683@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] alter table..drop constraint pkey, left not null un-dropped  (Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com>)
Список pgsql-hackers
Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com> writes:
> I have created a table with primary key, and then dropped primary key from
> table. But table still have not null constraint added by primary key.

> Is there any other statement to delete primary key with not null?
> or this is an expected behaviour of pg?

Yes, it's expected.  You can use "alter table t alter column c drop not
null" if you don't want the not-null constraint anymore.
        regards, tom lane



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

Предыдущее
От: tushar
Дата:
Сообщение: [HACKERS] If subscription to foreign table valid ?
Следующее
От: Jeevan Ladhe
Дата:
Сообщение: Re: [HACKERS] Bug in pg_dump --table and --exclude-table fordeclarative partition table handling.