Inheritance and Defaults

Поиск
Список
Период
Сортировка
От Luis Quintano
Тема Inheritance and Defaults
Дата
Msg-id 20010109180337.C3021@beane
обсуждение исходный текст
Список pgsql-general
Hello

I'm trying to migrate a postgres db on version 6.4 to 7.0 but inexpectedly
I noticed that 7.0 doesn't allow default values on subclasses.

Example:

create table foo (x text default 'bar',y int4);
create table foo1 (x text default 'bar1', y int4) inherits (foo);

insert into foo1 (y) values (1);

this insert means no problem in 6.4 (and in 6.5) but is not possible in
7.0.

How can I pass through this problem?

Luis Quintano
-------------
Serviço de Computação
Universidade de Évora

http://lex.uevora.pt




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: COPY error: pqReadData() -- backend closed the channel unexpectedly
Следующее
От: Heiko Irrgang
Дата:
Сообщение: Re: trouble with db-restore