Re: pg_dump bug in 7.3.9 with sequences
От | Alvaro Herrera |
---|---|
Тема | Re: pg_dump bug in 7.3.9 with sequences |
Дата | |
Msg-id | 20050203011301.GB16075@dcc.uchile.cl обсуждение исходный текст |
Ответ на | Re: pg_dump bug in 7.3.9 with sequences ("Joshua D. Drake" <jd@commandprompt.com>) |
Список | pgsql-hackers |
On Wed, Feb 02, 2005 at 03:49:59PM -0800, Joshua D. Drake wrote: > Alvaro Herrera wrote: > > >On Wed, Feb 02, 2005 at 01:54:48PM -0800, Joshua D. Drake wrote: > > > >>It is not pilot error if PostgreSQL allows it. There is > >>nothing "illegal" about the above commands in their execution. > >>The pg_dump application should recognize that the object has > >>changed and react accordingly. > > > >ISTM this is a bug, but it's not clear to me what is the solution. > > 3. When the default is changed, the dependency is updated > to reflect the new sequence. The old sequence is left intact > as an independent object. It seems reasonable to update the dependency. But it isn't reasonable to leave the old sequence intact, because it is an internal implementation detail that should not be left around. It would be a bug, because later when the table is dropped then you have a dangling object; this behavior would be equivalent to leaving the original sequence around when the table is dropped, which is exactly the scenario dependencies were written for. -- Alvaro Herrera (<alvherre[@]dcc.uchile.cl>) You liked Linux a lot when he was just the gawky kid from down the block mowing your lawn or shoveling the snow. But now that he wants to date your daughter, you're not so sure he measures up. (Larry Greenemeier)
В списке pgsql-hackers по дате отправления: