Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: Hide databases



 


From: pgadmin-support-owner(at)postgresql(dot)org [mailto:pgadmin-support-owner(at)postgresql(dot)org] On Behalf Of Ryan Proud
Sent: 26 October 2006 13:40
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: [pgadmin-support] Hide databases

Uwe Dalluege wrote:
Hi,
is it possible to hide the databases where I am not the owner?

In our university we have many postgresql user.
Each user has his own database.
When I start pgAdmin all databases are displayed.
Is there a button to avoid showing these databases?

Ok,
Dave and me have been discussing a little about this request, and we'll probably implement a configurable SQL restriction for that in 1.5/1.6. Your requirement seems typical for universities, let's declare this as my contribution to the Deutsches Bildungssystem! Greetings to the Geomatikum, where I spent quite some sleepy mornings in lectures, I remember... Regards,
Andreas

Has there been any update on this?
 
Yes - you can hide databases and schemas in 1.6 (currently in beta). You reminded me so I've added the following note to the docs (the server properties page to be exact):
 
The DB restriction field allows you to enter an SQL restriction that will be used against the pg_database table to limit the databases that you see. For example, you might enter: datname IN ('live_db', 'test_db') so that only live_db and test_db are shown in the pgAdmin browser. Note that you can also limit the schemas shown in the database from the Database properties dialogue by entering a restriction against pg_namespace
 
Regards, Dave. 


Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group