Re: Object translation mechanism is, umm, broken.

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Object translation mechanism is, umm, broken.
Date: 2011-06-03 13:24:26
Message-ID: BANLkTim80L323Vb-rMSFPwFE0K8nM+bO_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Fri, Jun 3, 2011 at 1:45 PM, Guillaume Lelarge
<guillaume(at)lelarge(dot)info> wrote:
>
> Hi,
>
> On Thu, 2011-06-02 at 08:54 +0000, Dave Page wrote:
> > [...]
> > This commit: http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=4b8ae9d82c3b879eb02dda60908ed9590a674ec4
> > (particularly the code in pgObject.cpp) is causing problems. I keep
> > running into objects for which we now get messages like "Refreshing
> > unknown object of type Replication", which I believe used to work just
> > fine. I've just hit it with the Slony replication cluster object, and
> > now have a sneaking suspicion it's also going to affect all the other
> > slony object types.
> >
>
> Right.
>
> > Aside from the fact that the code is incomplete, it's a serious
> > modularity violation. We shouldn't have a giant conditional statement
> > in a parent class that has knowledge of each of the different classes
> > that might be derived from that object. Instead, each of the child
> > classes should override a common function.
> >
> > Can you look at this please?
> >
>
> Working on it right now.
>

 Thanks - I appreciate it.

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

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

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Vinicius Santos 2011-06-04 19:05:28 Re: Update functions and trigger functions by clicking
Previous Message Guillaume Lelarge 2011-06-03 12:45:03 Re: Object translation mechanism is, umm, broken.