Re: 2 or more columns of type 'serial' in a table

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 2 or more columns of type 'serial' in a table
Дата
Msg-id 21084.980580424@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 2 or more columns of type 'serial' in a table  ("Aggarwal , Ajay" <ajay@crossbeamsys.com>)
Список pgsql-general
"Aggarwal , Ajay" <ajay@crossbeamsys.com> writes:
> I am having a problem, while trying to CREATE a table with more than one
> column of type 'serial'. Apparently only one sequence gets created and that
> is for the last 'serial' type column in the table.

How embarrassing ... I wonder how long that's been broken?

The fix in 7.0.3 is to change line 716 of src/backend/parser/analyze.c
from
        blist = lcons(sequence, NIL);
to
        blist = lappend(blist, sequence);

Fixed for 7.1.  Thanx for the report.

            regards, tom lane

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

Предыдущее
От: Adam Haberlach
Дата:
Сообщение: Re: Wild Cards
Следующее
От: Marc SCHAEFER
Дата:
Сообщение: Re: Re: Problem with inheritance