Thread: Storing configuration in a centralised database?

Storing configuration in a centralised database?

From
Justin Clift
Date:
Hi all,

Has any thought been given to storing the pgAdmin configuration in a 
cental database?

That way a central server could hold all of the configuration info for 
the company databases, and people can connect to that central server 
which will provide all the needed info for connecting to other databases.

?

Regards and best wishes,

Justin Clift



Re: Storing configuration in a centralised database?

From
Andreas Pflug
Date:
Justin Clift wrote:
> Hi all,
> 
> Has any thought been given to storing the pgAdmin configuration in a 
> cental database?

Yes, you :-)

> 
> That way a central server could hold all of the configuration info for 
> the company databases, and people can connect to that central server 
> which will provide all the needed info for connecting to other databases.

IMHO, it's not worth the effort. pgAdmin3 isn't targeted at end users, 
but at admins and developers.
For unix, you can simply copy .pgadmin3 in the home directory, for win32 
it's the KEY_CURRENT_USER\SOFTWARE\pgAdmin III registry branch.

Regards,
Andreas


Re: Storing configuration in a centralised database?

From
Justin Clift
Date:
Andreas Pflug wrote:
<snip>
>> That way a central server could hold all of the configuration info for 
>> the company databases, and people can connect to that central server 
>> which will provide all the needed info for connecting to other databases.
> 
> IMHO, it's not worth the effort. pgAdmin3 isn't targeted at end users, 
> but at admins and developers.

Sorry Andreas, I was thinking this would be for admins and developers, 
not end users.  :)


> For unix, you can simply copy .pgadmin3 in the home directory, for win32 
> it's the KEY_CURRENT_USER\SOFTWARE\pgAdmin III registry branch.

Sure, but that's a pain if you move between unix and win32 a lot, and/or 
have a bunch of admin's.

I'm thinking of functionality that'll make administration of PG better 
in larger environments.  Having a central repository makes a nice 
"foundation point" for building further functionality onto.

For example, with a centalised repository we could have some kind of 
(SNMP?) daemon that keeps the repository updated with the status of the 
databases.

If pgAdmin could also hook into this kind of repository, it could 
leverage off of the information there.  Definitions of servers and 
databases, database status info (i.e. SNMP daemon as mentioned), perhaps 
replication status, and that kind of thing.

Do you see where I'm trying to go with this?

:-)

Regards and best wishes,

Justin Clift


> Regards,
> Andreas




Re: Storing configuration in a centralised database?

From
Andreas Pflug
Date:
Justin Clift wrote:

> For example, with a centalised repository we could have some kind of 
> (SNMP?) daemon that keeps the repository updated with the status of the 
> databases.
> 
> If pgAdmin could also hook into this kind of repository, it could 
> leverage off of the information there.  Definitions of servers and 
> databases, database status info (i.e. SNMP daemon as mentioned), perhaps 
> replication status, and that kind of thing.

You certainly can contribute something like that, it could accompany the 
"local server detection" stuff for win32. Show the code!

Regards,
Andreas


Re: Storing configuration in a centralised database?

From
Justin Clift
Date:
Andreas Pflug wrote:
<snip>
> You certainly can contribute something like that, it could accompany the 
> "local server detection" stuff for win32. Show the code!

I just wish pgAdmin was written in PHP-GTK.  :)

+ Justin

> Regards,
> Andreas




Re: Storing configuration in a centralised database?

From
Andreas Pflug
Date:
Justin Clift wrote:
> Andreas Pflug wrote:
> <snip>
> 
>> You certainly can contribute something like that, it could accompany 
>> the "local server detection" stuff for win32. Show the code!
> 
> 
> I just wish pgAdmin was written in PHP-GTK.  :)
> 

Coding is coding, and if you want PHP you can use phppgadmin. For 
pgadmin's audience, the selected language/toolkit mix is the best.

Come on, just a little C++!

Regards,
Andreas