Re: pgAdmin III commit: Revert the previous change that introduced sysSetti - Mailing list pgadmin-hackers

From Dave Page
Subject Re: pgAdmin III commit: Revert the previous change that introduced sysSetti
Date
Msg-id AANLkTikj4d45Mva3LMb=aR1V-H4i9ezX7Hqv56BhUCmm@mail.gmail.com
Whole thread Raw
In response to Re: pgAdmin III commit: Revert the previous change that introduced sysSetti  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
Responses Re: pgAdmin III commit: Revert the previous change that introduced sysSetti
List pgadmin-hackers
On Thu, Feb 17, 2011 at 1:14 PM, Peter Geoghegan
<peter.geoghegan86@gmail.com> wrote:
> On 17 February 2011 11:33, Dave Page <dpage@pgadmin.org> wrote:
>> Hi Peter;
>>
>> Just so you're aware of this...
>
> I don't mind, but I also don't understand. How could changing the name
> of the function possibly affect the sort of datatype stored in the
> registry?

Well, you changed the name of the function, but not any of the call
sites, so that wasn't really the issue as much as the removal of the
overloaded Write(string, bool) I believe, which left one of the other
overloads writing DWORDS instead of the original SZs.

The reason it's not a simple fix though (ie. by updating all the
WriteBool() call sites to actually call WriteBool() - itself, probably
non-trivial), is that users that have existing settings will run into
problems with the switch of datatypes. They'll get an error loading
old settings into the new version of pgAdmin, and when it writes the
new settings back, they'll get a similar error starting an older
version of pgAdmin.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgadmin-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: pgAdmin III commit: Revert the previous change that introduced sysSetti
Next
From: Peter Geoghegan
Date:
Subject: Re: pgAdmin III commit: Revert the previous change that introduced sysSetti