Re: Possible defects with extensions in pgadmin3-1.14.2 - Mailing list pgadmin-support

From Guillaume Lelarge
Subject Re: Possible defects with extensions in pgadmin3-1.14.2
Date
Msg-id 1330470012.2246.67.camel@localhost.localdomain
Whole thread Raw
In response to Possible defects with extensions in pgadmin3-1.14.2  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
List pgadmin-support
On Tue, 2012-02-28 at 17:04 -0500, James B. Byrne wrote:
> CentOS-6.2
> PostgreSQL-9.1.2
> PGAdmin3-1.14.2
> 
> All installed via yum from repo at postgresql.org.
> 
> I previously sent this report to the pg users list:
> 
> First:
> When viewing the properties of the plpgsql extension the
> sql pane of the properties window of PGAdmin incorrectly
> gives the command ALTER EXTENSION 'plpgsql' OWNER TO . . .
> 
> OWNER is not valid syntax for the ALTER EXTENSION command.
>  Instead it should be ALTER LANGUAGE ;plpgsql' OWNER TO .
> . .

You're right. The extension dialog doesn't even show the owner. It's
fixed now.

> Second:
> I encountered a strange inconsistency with PGAdmin3-1.14.2
> relating to this.  After executing "ALTER LANGUAGE plpgsql
> OWNER TO devl;" in the SQL query pane inside PGAdmin3 the
> extension ownership change is never reflected in the
> object properties pane.
> 

Apart from the fact that we shouldn't display a owner of an extension,
there is no bug here. The extension plpgsql installs the language
plpgsql. They are different objects. So, when you change the owner of
the language, there is no change on the extension.

> Even when disconnecting and reconnecting to the server
> after making the the change the properties pane of the
> extension in that database continues to show the plpgsql
> extension owner as postgres.  psql on the other hand
> immediately shows that the new language owner is as
> expected following the change inside PGAdmin3.
> 

You compare two different things. You look into the extension nodes in
pgadmin and in the languages list in psql. If you looked at the language
nodes in pgadmin, you'd have noticed that the owner changed.

Anyway, you won't have the issue now with the fix I commited a few
minutes ago.


-- 
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com



pgadmin-support by date:

Previous
From: "James B. Byrne"
Date:
Subject: Possible defects with extensions in pgadmin3-1.14.2
Next
From: Charles Gutjahr
Date:
Subject: Likely bug in executing pgScript on wrong database