Re: More information about the selected objects

Lists: pgadmin-hackers
From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: More information about the selected objects
Date: 2012-07-12 15:13:54
Message-ID: CAOTD_5HMS5XOFT88dpA8-+TwUzL=0Y14zfbVWCQmr01PMkdHug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Hello,

When you click on a table, in the status bar appears: "Retrieving details
on table <table_name>..."

I'd like to put more information and leave it like this: "Retrieving
details on table <database_name>-><schema_name>.<table_name>, For example:

"Retrieving details on table db_developers->public.table..."

The same for all objects, like functions, views, operators, triggers, etc..

I would like to do this, because when there are many tables I end up
getting lost and not knowing what database I'm working ...

So, this information would solve the problem. What do you think?


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 00:47:20
Message-ID: CAOTD_5FcX4tn_jG+kWd_GNEf4nzu-Vp2HAWtfw1US+8xwpPxtw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

> So, this information would solve the problem. What do you think?
>

Any comment? Can I develop the patch?


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 13:07:36
Message-ID: 1342271256.8088.18.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Fri, 2012-07-13 at 21:47 -0300, Vinicius Santos wrote:
> > So, this information would solve the problem. What do you think?
> >
>
> Any comment? Can I develop the patch?

You can certainly work on a patch. Shouldn't be hard to code.

I see some value on it, but I don't like the arrow.

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 13:59:06
Message-ID: CAOTD_5FxPHn+H5qOAwaKRHbbb0kRBwPySZv4847T_DcbcUBuHw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Forwarding, sorry.

2012/7/14 Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>

> I see some value on it, but I don't like the arrow.
>>
>
> Any suggestions?
> I could put the point rather than the arrow or other something. What do
> you think?
>


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 14:06:25
Message-ID: 1342274785.8088.34.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Sat, 2012-07-14 at 10:59 -0300, Vinicius Santos wrote:
> Forwarding, sorry.
>
> 2012/7/14 Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
> I see some value on it, but I don't like the arrow.
>
>
> Any suggestions?
> I could put the point rather than the arrow or other
> something. What do you think?
>

Not sure I like the point either. We don't have that notation on
PostgreSQL. I think I would prefer something like "Retrieving details on
table schema.table" and not say the database. Because if you add the
database, someone will probably want also the server. It may not be
usefull to you, but it'll come at some point. And that's quite a lot of
informations.

Probably we could add some status boxes in the status bar. For exemple,
a box with a "user(at)database (server)" (with a lock icon if you use SSL
for example. Just a thought.

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 14:28:40
Message-ID: CAOTD_5FSQTmPCOqD1-Vo_pERWOVuzrv+dW828ytLHEv2gianaA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

> Not sure I like the point either. We don't have that notation on
> PostgreSQL. I think I would prefer something like "Retrieving details on
> table schema.table" and not say the database. Because if you add the
> database, someone will probably want also the server. It may not be
> usefull to you, but it'll come at some point. And that's quite a lot of
> informations.
>

I agree.

> Probably we could add some status boxes in the status bar. For exemple,
> a box with a "user(at)database (server)" (with a lock icon if you use SSL
> for example. Just a thought.
>
>
I liked the idea!

We could add status boxes in front of the information "Retrieving details
...".

For example, suppose that is the status bar:

With 3 status boxes:

|| "Retrieving details on schema.table" || user(at)database || server ||

or with 2 status boxes:

|| "Retrieving details on schema.table" || user(at)database ( server ) ||


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 16:44:47
Message-ID: 1342284287.8088.44.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Sat, 2012-07-14 at 11:28 -0300, Vinicius Santos wrote:
>
> Not sure I like the point either. We don't have that notation
> on
> PostgreSQL. I think I would prefer something like "Retrieving
> details on
> table schema.table" and not say the database. Because if you
> add the
> database, someone will probably want also the server. It may
> not be
> usefull to you, but it'll come at some point. And that's quite
> a lot of
> informations.
>
> I agree.
>
>
>
> Probably we could add some status boxes in the status bar. For
> exemple,
> a box with a "user(at)database (server)" (with a lock icon if you
> use SSL
> for example. Just a thought.
>
>
>
> I liked the idea!
>
> We could add status boxes in front of the information "Retrieving
> details ...".
>
> For example, suppose that is the status bar:
>
> With 3 status boxes:
>
> || "Retrieving details on schema.table" || user(at)database || server ||
>
> or with 2 status boxes:
>
> || "Retrieving details on schema.table" || user(at)database ( server )
> ||
>
>

I think I like the second one better, but this is just my opinion.

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 17:14:34
Message-ID: CAOTD_5FoRR4pNGxq7xPaQsS9gSHMmY14kHbH6-S2_Scsg5bwYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
> I think I like the second one better, but this is just my opinion.
>

Well, I'll start working on the second, then.

If new opinions, we changed.


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 17:57:19
Message-ID: CA+OCxowvGnk9eZf0n=5EQeDT-gNStVvofWZDoi6GPtR1M5v9xQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Saturday, July 14, 2012, Guillaume Lelarge wrote:

> On Sat, 2012-07-14 at 11:28 -0300, Vinicius Santos wrote:
> >
> > Not sure I like the point either. We don't have that notation
> > on
> > PostgreSQL. I think I would prefer something like "Retrieving
> > details on
> > table schema.table" and not say the database. Because if you
> > add the
> > database, someone will probably want also the server. It may
> > not be
> > usefull to you, but it'll come at some point. And that's quite
> > a lot of
> > informations.
> >
> > I agree.
> >
> >
> >
> > Probably we could add some status boxes in the status bar. For
> > exemple,
> > a box with a "user(at)database (server)" (with a lock icon if you
> > use SSL
> > for example. Just a thought.
> >
> >
> >
> > I liked the idea!
> >
> > We could add status boxes in front of the information "Retrieving
> > details ...".
> >
> > For example, suppose that is the status bar:
> >
> > With 3 status boxes:
> >
> > || "Retrieving details on schema.table" || user(at)database || server ||
> >
> > or with 2 status boxes:
> >
> > || "Retrieving details on schema.table" || user(at)database ( server )
> > ||
> >
> >
>
> I think I like the second one better, but this is just my opinion.
>

Aside from it being a needless amount of information to clutter the display
with, I can pretty much guarantee you won't be able to figure out a clean
way of sizing the panels to accomodate all that data without truncating one
or more of them for some selected objects.

I suspect I will end up objecting strongly to any patch that tries do do
what's being discussed.

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

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


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 18:03:21
Message-ID: 1342289001.8088.57.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Sat, 2012-07-14 at 18:57 +0100, Dave Page wrote:
>
>
> On Saturday, July 14, 2012, Guillaume Lelarge wrote:
> On Sat, 2012-07-14 at 11:28 -0300, Vinicius Santos wrote:
> >
> > Not sure I like the point either. We don't have that
> notation
> > on
> > PostgreSQL. I think I would prefer something like
> "Retrieving
> > details on
> > table schema.table" and not say the database.
> Because if you
> > add the
> > database, someone will probably want also the
> server. It may
> > not be
> > usefull to you, but it'll come at some point. And
> that's quite
> > a lot of
> > informations.
> >
> > I agree.
> >
> >
> >
> > Probably we could add some status boxes in the
> status bar. For
> > exemple,
> > a box with a "user(at)database (server)" (with a lock
> icon if you
> > use SSL
> > for example. Just a thought.
> >
> >
> >
> > I liked the idea!
> >
> > We could add status boxes in front of the information
> "Retrieving
> > details ...".
> >
> > For example, suppose that is the status bar:
> >
> > With 3 status boxes:
> >
> > || "Retrieving details on schema.table" || user(at)database ||
> server ||
> >
> > or with 2 status boxes:
> >
> > || "Retrieving details on schema.table" || user(at)database
> ( server )
> > ||
> >
> >
>
> I think I like the second one better, but this is just my
> opinion.
>
>
> Aside from it being a needless amount of information to clutter the
> display with, I can pretty much guarantee you won't be able to figure
> out a clean way of sizing the panels to accomodate all that data
> without truncating one or more of them for some selected objects.
>

Are we talking about the same thing? I'm not suggesting to add a panel.
I'm suggesting to add another box in the status bar (wxStatusBar
object). It won't take any more space than before.

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


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-14 19:48:15
Message-ID: CA+OCxoyOm6QKtfbZQ02my6YqkW8N47DJDsyo3Q5eVfDE6kW9+g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Saturday, July 14, 2012, Guillaume Lelarge wrote:

> On Sat, 2012-07-14 at 18:57 +0100, Dave Page wrote:
> >
> >
> > On Saturday, July 14, 2012, Guillaume Lelarge wrote:
> > On Sat, 2012-07-14 at 11:28 -0300, Vinicius Santos wrote:
> > >
> > > Not sure I like the point either. We don't have that
> > notation
> > > on
> > > PostgreSQL. I think I would prefer something like
> > "Retrieving
> > > details on
> > > table schema.table" and not say the database.
> > Because if you
> > > add the
> > > database, someone will probably want also the
> > server. It may
> > > not be
> > > usefull to you, but it'll come at some point. And
> > that's quite
> > > a lot of
> > > informations.
> > >
> > > I agree.
> > >
> > >
> > >
> > > Probably we could add some status boxes in the
> > status bar. For
> > > exemple,
> > > a box with a "user(at)database (server)" (with a lock
> > icon if you
> > > use SSL
> > > for example. Just a thought.
> > >
> > >
> > >
> > > I liked the idea!
> > >
> > > We could add status boxes in front of the information
> > "Retrieving
> > > details ...".
> > >
> > > For example, suppose that is the status bar:
> > >
> > > With 3 status boxes:
> > >
> > > || "Retrieving details on schema.table" || user(at)database ||
> > server ||
> > >
> > > or with 2 status boxes:
> > >
> > > || "Retrieving details on schema.table" || user(at)database
> > ( server )
> > > ||
> > >
> > >
> >
> > I think I like the second one better, but this is just my
> > opinion.
> >
> >
> > Aside from it being a needless amount of information to clutter the
> > display with, I can pretty much guarantee you won't be able to figure
> > out a clean way of sizing the panels to accomodate all that data
> > without truncating one or more of them for some selected objects.
> >
>
> Are we talking about the same thing? I'm not suggesting to add a panel.
> I'm suggesting to add another box in the status bar (wxStatusBar
> object). It won't take any more space than before.
>

The bar won't, but the text in it will.

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

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


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-16 21:22:54
Message-ID: 1342473774.2534.41.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Sat, 2012-07-14 at 20:48 +0100, Dave Page wrote:
>
>
> On Saturday, July 14, 2012, Guillaume Lelarge wrote:
> On Sat, 2012-07-14 at 18:57 +0100, Dave Page wrote:
> >
> >
> > On Saturday, July 14, 2012, Guillaume Lelarge wrote:
> > On Sat, 2012-07-14 at 11:28 -0300, Vinicius Santos
> wrote:
> > >
> > > Not sure I like the point either. We don't
> have that
> > notation
> > > on
> > > PostgreSQL. I think I would prefer
> something like
> > "Retrieving
> > > details on
> > > table schema.table" and not say the
> database.
> > Because if you
> > > add the
> > > database, someone will probably want also
> the
> > server. It may
> > > not be
> > > usefull to you, but it'll come at some
> point. And
> > that's quite
> > > a lot of
> > > informations.
> > >
> > > I agree.
> > >
> > >
> > >
> > > Probably we could add some status boxes in
> the
> > status bar. For
> > > exemple,
> > > a box with a "user(at)database
> (server)" (with a lock
> > icon if you
> > > use SSL
> > > for example. Just a thought.
> > >
> > >
> > >
> > > I liked the idea!
> > >
> > > We could add status boxes in front of the
> information
> > "Retrieving
> > > details ...".
> > >
> > > For example, suppose that is the status bar:
> > >
> > > With 3 status boxes:
> > >
> > > || "Retrieving details on schema.table" ||
> user(at)database ||
> > server ||
> > >
> > > or with 2 status boxes:
> > >
> > > || "Retrieving details on schema.table" ||
> user(at)database
> > ( server )
> > > ||
> > >
> > >
> >
> > I think I like the second one better, but this is
> just my
> > opinion.
> >
> >
> > Aside from it being a needless amount of information to
> clutter the
> > display with, I can pretty much guarantee you won't be able
> to figure
> > out a clean way of sizing the panels to accomodate all that
> data
> > without truncating one or more of them for some selected
> objects.
> >
>
> Are we talking about the same thing? I'm not suggesting to add
> a panel.
> I'm suggesting to add another box in the status bar
> (wxStatusBar
> object). It won't take any more space than before.
>
>
> The bar won't, but the text in it will.
>

Yes, and? I don't see how that could be much of a problem.

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


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-17 07:12:46
Message-ID: CA+OCxoxCjYA5BWCusX3h20hFx-pnf8+BEimpJQMv05esHFOfCw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Mon, Jul 16, 2012 at 10:22 PM, Guillaume Lelarge
<guillaume(at)lelarge(dot)info> wrote:
> On Sat, 2012-07-14 at 20:48 +0100, Dave Page wrote:
>>
>>
>> On Saturday, July 14, 2012, Guillaume Lelarge wrote:
>> On Sat, 2012-07-14 at 18:57 +0100, Dave Page wrote:
>> >
>> >
>> > On Saturday, July 14, 2012, Guillaume Lelarge wrote:
>> > On Sat, 2012-07-14 at 11:28 -0300, Vinicius Santos
>> wrote:
>> > >
>> > > Not sure I like the point either. We don't
>> have that
>> > notation
>> > > on
>> > > PostgreSQL. I think I would prefer
>> something like
>> > "Retrieving
>> > > details on
>> > > table schema.table" and not say the
>> database.
>> > Because if you
>> > > add the
>> > > database, someone will probably want also
>> the
>> > server. It may
>> > > not be
>> > > usefull to you, but it'll come at some
>> point. And
>> > that's quite
>> > > a lot of
>> > > informations.
>> > >
>> > > I agree.
>> > >
>> > >
>> > >
>> > > Probably we could add some status boxes in
>> the
>> > status bar. For
>> > > exemple,
>> > > a box with a "user(at)database
>> (server)" (with a lock
>> > icon if you
>> > > use SSL
>> > > for example. Just a thought.
>> > >
>> > >
>> > >
>> > > I liked the idea!
>> > >
>> > > We could add status boxes in front of the
>> information
>> > "Retrieving
>> > > details ...".
>> > >
>> > > For example, suppose that is the status bar:
>> > >
>> > > With 3 status boxes:
>> > >
>> > > || "Retrieving details on schema.table" ||
>> user(at)database ||
>> > server ||
>> > >
>> > > or with 2 status boxes:
>> > >
>> > > || "Retrieving details on schema.table" ||
>> user(at)database
>> > ( server )
>> > > ||
>> > >
>> > >
>> >
>> > I think I like the second one better, but this is
>> just my
>> > opinion.
>> >
>> >
>> > Aside from it being a needless amount of information to
>> clutter the
>> > display with, I can pretty much guarantee you won't be able
>> to figure
>> > out a clean way of sizing the panels to accomodate all that
>> data
>> > without truncating one or more of them for some selected
>> objects.
>> >
>>
>> Are we talking about the same thing? I'm not suggesting to add
>> a panel.
>> I'm suggesting to add another box in the status bar
>> (wxStatusBar
>> object). It won't take any more space than before.
>>
>>
>> The bar won't, but the text in it will.
>>
>
> Yes, and? I don't see how that could be much of a problem.

You'll end up with a bunch of truncated text labels making the status
bar look busy, overly complex and distracting, and not necessarily
conveying the information it's trying to. Resizing won't help as you
can only have one "sprung" pane on some (all?) platforms and that
needs to be the one displaying the status messages (which we do not
want to be truncated either).

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

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Cc: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-17 16:24:17
Message-ID: CAOTD_5FT8SYP4Uigjv4Vbjd1fe9N7jjATfNbwHF22K0Df5ujyQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Attached.

I think the information "user(at)database ( server )" is important.

I tested on Windows 7.
I'll test on Ubuntu tonight.

Attachment Content-Type Size
0001-More-information-about-the-selected-objects.patch application/octet-stream 39.6 KB

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-17 16:44:05
Message-ID: CA+OCxozwFCQwoXg+BQ90BXsP7AUrr-8Hwh9igEp-hwyDWD6p1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Tue, Jul 17, 2012 at 5:24 PM, Vinicius Santos
<vinicius(dot)santos(dot)lista(at)gmail(dot)com> wrote:
> Attached.
>
> I think the information "user(at)database ( server )" is important.
>
> I tested on Windows 7.
> I'll test on Ubuntu tonight.

I have no idea how you managed to get that to compile on Windows:

./schema/edbSynonym.cpp: In member function ‘virtual wxString
edbSynonym::GetTranslatedMessage(int) const’:
./schema/edbSynonym.cpp:33: error: invalid use of incomplete type
‘struct pgSchema’
../pgadmin/include/utils/factory.h:31: error: forward declaration of
‘struct pgSchema’
./schema/edbSynonym.cpp:37: error: invalid use of incomplete type
‘struct pgSchema’
../pgadmin/include/utils/factory.h:31: error: forward declaration of
‘struct pgSchema’
make[3]: *** [edbSynonym.o] Error 1
make[3]: *** Waiting for unfinished jobs....
./schema/pgCast.cpp: In member function ‘virtual wxString
pgCast::GetTranslatedMessage(int) const’:
./schema/pgCast.cpp:38: error: invalid use of incomplete type ‘struct pgSchema’
../pgadmin/include/utils/factory.h:31: error: forward declaration of
‘struct pgSchema’
./schema/pgCast.cpp:42: error: invalid use of incomplete type ‘struct pgSchema’
../pgadmin/include/utils/factory.h:31: error: forward declaration of
‘struct pgSchema’
make[3]: *** [pgCast.o] Error 1

Which is entirely expected as both public synonyms and casts are
database level objects and thus don't have pgSchema as a parent class.

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

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-17 16:53:12
Message-ID: CAOTD_5ETYS3spn38ZZiZfhdb3QofmXGSZ76vuoRkiKNGMJ-QYg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
> Which is entirely expected as both public synonyms and casts are
> database level objects and thus don't have pgSchema as a parent class.
>
>
I forgot to check the pgCast. Sorry

I'll fix it and resubmit.


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-18 00:50:32
Message-ID: CAOTD_5Fj0ywJz9jrP7-+ntx5Jzc-oBD5wkOMB3baGX9N0eHbyw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

I fixed the problems.

I removed the implementation on EnterpriseDB items, because I don't have
how to test it. Can you help to test it?

I tested on Windows 7 and Ubuntu.

Attachment Content-Type Size
0001-More-information-about-the-selected-objects.patch application/octet-stream 26.8 KB

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-18 12:15:11
Message-ID: CA+OCxoxXj5yNaEVQJ4mPEZyV5fjE_+PCeG5gMVanG-sPGJdpfw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Wed, Jul 18, 2012 at 1:50 AM, Vinicius Santos
<vinicius(dot)santos(dot)lista(at)gmail(dot)com> wrote:
> I fixed the problems.

That's better.

> I removed the implementation on EnterpriseDB items, because I don't have how
> to test it. Can you help to test it?

I can test the PPAS stuff, but not the Greenplum objects. But... they
shouldn't be an issue - if an object is derived from pgSchema, you can
(and should use GetSchema(). If it's derived from a pgTable, you
probably want the table name too. If it's derived from pgObject,
pgServer, pgDatabase, then there's no schema available.

> I tested on Windows 7 and Ubuntu.

I noted a few problems.

- First, the patch exhibits exactly the problem I was talking about.
See the attached screenshot, which is just a mess. All of the names
(server, object, username etc) are real. None are made up. And yes,
despite what Microsoft seem to be wanting people to do from Windows 8
onwards, I usually don't have full screen windows, but tend to work
with smaller ones side-by-side.

- Not only do I see truncated names, but more importantly the "Done."
is not visible. That is *essential*, for obvious reasons.

- We try to avoid referring to servers by their hostname/IP address in
the UI (anywhere we do, is an oversight). You should be showing the
name. In my case, for remote servers that tends to be the hostname
anyway. For local servers though, it's usually a string like
"PostgreSQL 9.1" or "Postgres Plus Advanced Server 9.1". The reasoning
is that the name is a memorable string that the user can easily
recognise, whilst the hostname or IP address usually isn't (for
example, Amazon EC2 hostnames - which of course, are also very long).

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

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

Attachment Content-Type Size
Screen Shot 2012-07-18 at 13.02.24.png image/png 202.3 KB

From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-18 12:50:27
Message-ID: CAOTD_5H5vG2-DFMSAQhBrAkDxeTmtvNwurOfoewemasFK=m69Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
> I can test the PPAS stuff, but not the Greenplum objects. But... they
> shouldn't be an issue - if an object is derived from pgSchema, you can
> (and should use GetSchema(). If it's derived from a pgTable, you
> probably want the table name too. If it's derived from pgObject,
> pgServer, pgDatabase, then there's no schema available.
>

Ok. No problems here.

- First, the patch exhibits exactly the problem I was talking about.
> See the attached screenshot, which is just a mess. All of the names
> (server, object, username etc) are real. None are made up. And yes,
> despite what Microsoft seem to be wanting people to do from Windows 8
> onwards, I usually don't have full screen windows, but tend to work
> with smaller ones side-by-side.
>

Really. Your servers have very long names. This should happen only at lower
resolutions.

And if we put a configuration option? The user decides if he wants this
option or not.

Or to put this information somewhere else, but where?

> - Not only do I see truncated names, but more importantly the "Done."
> is not visible. That is *essential*, for obvious reasons.
>

Yes, I agree.

>
> - We try to avoid referring to servers by their hostname/IP address in
> the UI (anywhere we do, is an oversight). You should be showing the
> name. In my case, for remote servers that tends to be the hostname
> anyway. For local servers though, it's usually a string like
> "PostgreSQL 9.1" or "Postgres Plus Advanced Server 9.1". The reasoning
> is that the name is a memorable string that the user can easily
> recognise, whilst the hostname or IP address usually isn't (for
> example, Amazon EC2 hostnames - which of course, are also very long).
>

Here, also without problems. I agree too.


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-18 12:56:30
Message-ID: CA+OCxozAjR2UaDmmDRWtudtwtVnDoMd0DfLpYoM--psExgmPSg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Wed, Jul 18, 2012 at 1:50 PM, Vinicius Santos
<vinicius(dot)santos(dot)lista(at)gmail(dot)com> wrote:
>
> Really. Your servers have very long names. This should happen only at lower
> resolutions.

Not really. The panel you've used for the server name is fixed width.
As I mentioned before, on some, if not all platforms, you can only
have 1 variable width panel. That's one of the reasons we've avoided
putting extra info in there before, that isn't a clearly defined
width.

> And if we put a configuration option? The user decides if he wants this
> option or not.
>
> Or to put this information somewhere else, but where?

It is somewhere else already. You can see it from the treeview - which
is why I think it's redundant anyway. The fact that noone else has
ever complained (that I can recall) also suggests it's not an issue
for others.

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

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-18 13:13:07
Message-ID: CAOTD_5FJqReCbdqWKqdKrZysQOtzVe_c4Qif1xV0wZzLZ+vB_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
> Not really. The panel you've used for the server name is fixed width.
> As I mentioned before, on some, if not all platforms, you can only
> have 1 variable width panel. That's one of the reasons we've avoided
> putting extra info in there before, that isn't a clearly defined
> width.
>

It's true. You're right.

> It is somewhere else already. You can see it from the treeview - which
> is why I think it's redundant anyway. The fact that noone else has
> ever complained (that I can recall) also suggests it's not an issue
> for others.
>

I agree that isn't an issue, but I think that this feature would facilitate a
bit when you have multiple objects.

But, this implementation will really cause an issue. So is better not to do.


From: Dave Page <dpage(at)pgadmin(dot)org>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-18 13:31:57
Message-ID: CA+OCxowbNOY395HuHdDK-T-_xnqbhkPSPb6S4H56CV82_p=uzA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Wed, Jul 18, 2012 at 2:13 PM, Vinicius Santos
<vinicius(dot)santos(dot)lista(at)gmail(dot)com> wrote:
>> Not really. The panel you've used for the server name is fixed width.
>> As I mentioned before, on some, if not all platforms, you can only
>> have 1 variable width panel. That's one of the reasons we've avoided
>> putting extra info in there before, that isn't a clearly defined
>> width.
>
>
> It's true. You're right.
>
>>
>> It is somewhere else already. You can see it from the treeview - which
>> is why I think it's redundant anyway. The fact that noone else has
>> ever complained (that I can recall) also suggests it's not an issue
>> for others.
>
>
> I agree that isn't an issue, but I think that this feature would facilitate
> a bit when you have multiple objects.
>
> But, this implementation will really cause an issue. So is better not to do.

One alternative option might be to have an extra wxAUI menubar panel,
with a couple of textlabels on it. That could be moved around and
hidden or shown in the same way we do for the menu bar (or the
database selection bar on the query tool).

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

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Subject: Re: More information about the selected objects
Date: 2012-07-18 13:41:03
Message-ID: CAOTD_5EkU9s7xPfBMvAE_QwyBfhcwA=m+2JvUooszjRwUb99jA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
> One alternative option might be to have an extra wxAUI menubar panel,
> with a couple of textlabels on it. That could be moved around and
> hidden or shown in the same way we do for the menu bar (or the
> database selection bar on the query tool).
>

Good ideia.
I can do. Then we see if it improved.


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-18 20:48:32
Message-ID: 1342644512.1989.91.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Wed, 2012-07-18 at 10:41 -0300, Vinicius Santos wrote:
>
> One alternative option might be to have an extra wxAUI menubar
> panel,
> with a couple of textlabels on it. That could be moved around
> and
> hidden or shown in the same way we do for the menu bar (or the
> database selection bar on the query tool).
>
> Good ideia.
> I can do. Then we see if it improved.

I'm skeptical, but we'll see.

How about the window's title bar? we already use that for the query
tool.

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-24 03:13:27
Message-ID: CAOTD_5H9F91X5ECh43U=gbmmK=URz0VFPPaKbGwEK-Vbk99vgQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Hello,

I don't think it's cool. But I think the information is important, even
though the same information is in the treeview.
If I don't find an elegant way to do this, I think better give up.
What do you think?

Attachment Content-Type Size
image/jpeg 41.2 KB

From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-24 04:02:58
Message-ID: CAOTD_5HF=xuyMuWyAALQw7_s-8VBVnL5Nzp9ykkMJO3=Abe+Vw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

We can also do so. On caption.

Attachment Content-Type Size
image/jpeg 20.9 KB

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-24 08:11:48
Message-ID: 1343117508.2039.30.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Tue, 2012-07-24 at 01:02 -0300, Vinicius Santos wrote:
> We can also do so. On caption.
>
>

I much prefer what you call "on caption" (I call it the title bar).
That's already what we do with the query tool.

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-24 11:43:48
Message-ID: CAOTD_5GvLkGngxeST-zWZ4pGLB4+rEpxSMpwr=Ejpv4N2yrXjg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
>
> I much prefer what you call "on caption" (I call it the title bar).
>

I called it as "on caption" because of my habit with Delphi.
It is the title bar really

> That's already what we do with the query tool.
>

So, I'll send the patch in the title bar, for you to give a look.


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: Dave Page <dpage(at)pgadmin(dot)org>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-07-26 15:37:59
Message-ID: CAOTD_5FJjuiKvxDXU_yP-cTh8V-YyF_XQsVDNdv+5mYTO-30dw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

Hello,

I finished the patch. It works fine on Windows 7, but the
SetLabel(wxString) doesn't work on my Ubuntu.
I did make some simple tests with the wxWidgets on Ubuntu, but I can't do
it to work.

Can you help-me with the test on Linux?

Thanks.

Attachment Content-Type Size
0001-More-information-about-the-selected-objetc.patch application/octet-stream 26.2 KB

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-08-26 16:55:20
Message-ID: 1346000120.5678.23.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Thu, 2012-07-26 at 12:37 -0300, Vinicius Santos wrote:
> Hello,
>
> I finished the patch. It works fine on Windows 7, but the
> SetLabel(wxString) doesn't work on my Ubuntu.
> I did make some simple tests with the wxWidgets on Ubuntu, but I can't do
> it to work.
>
> Can you help-me with the test on Linux?
>

Got some time to work on this. SetLabel is useful for widgets, not for
windows. Change your call to the SetLabel() method with a call to
SetTitle(). Works great for me on Linux. Don't know on Windows, maybe
you could check?

About your patch, it seems good so far. My only issue is that, when I
click on the root node, or on a servers group node, it still displays
the old connection string. It shouldn't. It should get back to "pgAdmin
III".

Another thing that bugs me. To show the full name of an object, you use
this code:

GetSchema()->GetName() + wxT(".") + GetName()

instead of the simpler:

GetFullIdentifier()

Please change this.

Once all of this have been done, I'll review it one more time, and apply
it if ready.

Thanks.

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-08-26 19:26:06
Message-ID: CAOTD_5FpKQ9WXCq8i2rqeFbRcwbyuXCfsdD8MvpD=fgcVe8mqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
> Got some time to work on this. SetLabel is useful for widgets, not for
> windows. Change your call to the SetLabel() method with a call to
> SetTitle(). Works great for me on Linux. Don't know on Windows, maybe
> you could check?
>

Yes. Of course.

>
> About your patch, it seems good so far. My only issue is that, when I
> click on the root node, or on a servers group node, it still displays
> the old connection string. It shouldn't. It should get back to "pgAdmin
> III".
>

OK. It's true.

>
> Another thing that bugs me. To show the full name of an object, you use
> this code:
>
> GetSchema()->GetName() + wxT(".") + GetName()
>
> instead of the simpler:
>
> GetFullIdentifier()
>

OK. I'll make the changes.

Thanks!


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-09-11 15:20:35
Message-ID: CAOTD_5H51h+7hyTOUxNgsQ_xXzmhNC88y5TPKv8S9ABonRz4_w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

> Got some time to work on this. SetLabel is useful for widgets, not for
> windows. Change your call to the SetLabel() method with a call to
> SetTitle(). Works great for me on Linux. Don't know on Windows, maybe
> you could check?
>

OK. I changed it.

>
> About your patch, it seems good so far. My only issue is that, when I
> click on the root node, or on a servers group node, it still displays
> the old connection string. It shouldn't. It should get back to "pgAdmin
> III".
>

Here, I would like the opinion of you.

When the user clicks on the "Database" node, the pgAdmin is connected to
the database "postgres".
So, would not it be interesting to show this information?

>
> Another thing that bugs me. To show the full name of an object, you use
> this code:
>
> GetSchema()->GetName() + wxT(".") + GetName()
>
> instead of the simpler:
>
> GetFullIdentifier()
>

GetFullIdentifier() doesn't show the same information.

We can't change it, because it is used in several other places.


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-09-11 17:47:50
Message-ID: 1347385670.1945.90.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Tue, 2012-09-11 at 12:20 -0300, Vinicius Santos wrote:
>
>
> Got some time to work on this. SetLabel is useful for widgets,
> not for
> windows. Change your call to the SetLabel() method with a call
> to
> SetTitle(). Works great for me on Linux. Don't know on
> Windows, maybe
> you could check?
>
> OK. I changed it.
>
>
> About your patch, it seems good so far. My only issue is that,
> when I
> click on the root node, or on a servers group node, it still
> displays
> the old connection string. It shouldn't. It should get back to
> "pgAdmin
> III".
>
> Here, I would like the opinion of you.
>
> When the user clicks on the "Database" node, the pgAdmin is connected
> to the database "postgres".
> So, would not it be interesting to show this information?
>

Well, as far as I know, pgadmin could be connected to many databases. It
should only display the connection it used to get the informations on
the selected object.

>
>
> Another thing that bugs me. To show the full name of an
> object, you use
> this code:
>
> GetSchema()->GetName() + wxT(".") + GetName()
>
> instead of the simpler:
>
> GetFullIdentifier()
>
> GetFullIdentifier() doesn't show the same information.
>
>
> We can't change it, because it is used in several other places.

Are you sure?

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-09-11 18:49:02
Message-ID: CAOTD_5EZivqiEVqHMPO-1xxqC7g_U8dtOMbBcYjp96sO8keSLw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

>
> Well, as far as I know, pgadmin could be connected to many databases. It
> should only display the connection it used to get the informations on
> the selected object.
>

Thinking so, I think you have reason.

>
> Are you sure?
>

Yes. GetFullIdentifier() doesn't return the schema.


From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-09-11 20:19:40
Message-ID: 1347394780.1945.96.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

On Tue, 2012-09-11 at 15:49 -0300, Vinicius Santos wrote:
> Well, as far as I know, pgadmin could be connected to many
> databases. It
> should only display the connection it used to get the
> informations on
> the selected object.
>
> Thinking so, I think you have reason.
>

Thanks.

>
>
> Are you sure?
>
> Yes. GetFullIdentifier() doesn't return the schema.

It doesn't return the schema when the schema belongs to your
search_path. That's the right way to do it.

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


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-09-11 20:55:15
Message-ID: CAOTD_5EaJ+uL98svQhOzPd_ZS2usMU4jWdtJBmDhgUbo5e37JQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

> It doesn't return the schema when the schema belongs to your
> search_path. That's the right way to do it.
>

OK. But we must always show the scheme in this context.

We can create another function too.


From: Vinicius Santos <vinicius(dot)santos(dot)lista(at)gmail(dot)com>
To: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: More information about the selected objects
Date: 2012-10-01 16:23:34
Message-ID: CAOTD_5G-nkUu3wpzSmw074n6x+nPR7_+RAppbcPS-GyD177hAg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgadmin-hackers

What do you think about this?

Attachment Content-Type Size
0058-More-information-about-the-selected-objetc.patch application/octet-stream 35.9 KB