Redundant statements (was: Re: column STATISTICS lost)

Поиск
Список
Период
Сортировка
От Erwin Brandstetter
Тема Redundant statements (was: Re: column STATISTICS lost)
Дата
Msg-id 4BD86D81.8040306@falter.at
обсуждение исходный текст
Ответ на Re: column STATISTICS lost  (Guillaume Lelarge <guillaume@lelarge.info>)
Ответы Re: Redundant statements  (Erwin Brandstetter <brandstetter@falter.at>)
Список pgadmin-hackers
Aloha!

I am testing Guillaume's version of pgadmin3.exe from Apr. 17.

The fix below is included and it seems to fix the problem just fine.
However, as a side effect (?) there is now a redundant statement for
each and every column:
     ALTER TABLE foo ALTER COLUMN bar SET STORAGE PLAIN;
or
     ALTER TABLE foo ALTER COLUMN baz SET STORAGE EXTENDED;

I think those statements should only be included, if the storage type
differs from the default setting - like "SET STATISTICS" is handled now.
It is pretty noisy as it is now.

On a side note: I would handle "WITH (OIDS=FALSE)" for table definitions
likewise: only print it, if it differs from the default setting.


Regards
Erwin


On 03.04.2010 11:46, guillaume@lelarge.info wrote:
> Le 03/04/2010 11:19, Dave Page a écrit :
>
>> On Sat, Apr 3, 2010 at 4:01 AM, Guillaume Lelarge
>> <guillaume@lelarge.info>  wrote:
>>
>>> OK, I have a patch (attached) that seems to work. It adds some
>>> functions, and I'm not sure I should push this into the 1.10 branch.
>>> What do you guys think about this? only in trunk or in trunk and in the
>>> 1.10 branch?
>>>
>> Seems like a bug fix to me, so I say 1.10.
>>
>>
> OK, commited to both branches.
>
> Thanks.
>

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

Предыдущее
От: svn@pgadmin.org
Дата:
Сообщение: SVN Commit by guillaume: r8306 - in branches/REL-1_10_0_PATCHES/pgadmin3: . pgadmin/dlg
Следующее
От: Erwin Brandstetter
Дата:
Сообщение: Re: Redundant statements