Re: Drop schema/Create new schema SIGSEGV - pgadmin3 git version

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vladimir Kokovic <vladimir(dot)kokovic(at)gmail(dot)com>
Cc: pgadmin-support(at)postgresql(dot)org
Subject: Re: Drop schema/Create new schema SIGSEGV - pgadmin3 git version
Date: 2012-01-23 21:08:34
Message-ID: 1327352914.2286.26.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Thu, 2012-01-12 at 23:35 +0100, Guillaume Lelarge wrote:
> On Thu, 2012-01-12 at 18:29 +0100, Vladimir Kokovic wrote:
> > Hi,
> >
> > If I try to drop or create new schema 'Program received signal
> > SIGSEGV, Segmentation fault' happened.
> >
> > Problem is in the line 51 of pgadmin3/pgadmin/ctl/ctlDefaultSecurityPanel.cpp.
> >
> > Should be: if (conn && conn->BackendMinimumVersion(9, 2))
> >
>
> Nope. This will simply not display the tab, and we don't want that.
> There is a bug to fix, but that's not the good way to fix it: we want to
> keep the tab. So, we need to understand why conn isn't available at this
> time.
>
> But thanks for your report.
>

Fixed. We handle this the same way than with dlgDatabase. IOW, we don't
display the tab if we don't have the node. Kind of like you did but in
another way.

It would need a major refactor to do otherwise.

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com
PostgreSQL Sessions #3: http://www.postgresql-sessions.org

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Tim Uckun 2012-01-24 23:41:41 MacOSX and pg_service
Previous Message Guillaume Lelarge 2012-01-23 20:06:26 Re: column level privilages error