RE: One storage for all pgAdmin users

From: Сергей Краснов <s(dot)krasnov(at)scloud(dot)ru>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: "pgadmin-support(at)lists(dot)postgresql(dot)org" <pgadmin-support(at)lists(dot)postgresql(dot)org>
Subject: RE: One storage for all pgAdmin users
Date: 2020-11-19 06:19:18
Message-ID: VI1PR0102MB262408C5B73F9B13DE385C8CF0E00@VI1PR0102MB2624.eurprd01.prod.exchangelabs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Thanks for your help, Dave! I’ll try the symlink workaround

From: Dave Page <dpage(at)pgadmin(dot)org>
Sent: Wednesday, November 18, 2020 6:11 PM
To: Сергей Краснов <s(dot)krasnov(at)scloud(dot)ru>
Cc: pgadmin-support(at)lists(dot)postgresql(dot)org
Subject: Re: One storage for all pgAdmin users

Hi

On Wed, Nov 18, 2020 at 3:03 PM Сергей Краснов <s(dot)krasnov(at)scloud(dot)ru<mailto:s(dot)krasnov(at)scloud(dot)ru>> wrote:
Hi!
Is there any way to make one storage accessible to a multiple users at one time?
Right now when you set STORAGE_DIR variable in config_local.py, pgAdmin will create a separate directory for every single user in it (e.g. if STORAGE_DIR=/somedir, then user’s storage root will be at /somedir/someuser/). The idea is to allow users access some common directory, or to set one directory as several user’s storage root.

pgAdmin doesn't have any specific support for this at the moment (please feel free to log a feature request at https://redmine.postgresql.org/projects/pgadmin4/issues/new) however you should be able to fake it by creating a symlink in each user's storage directory that points to a common location.

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

EDB: http://www.enterprisedb.com

[http://scloud.ru/images/scloud_logo_mail.png]

Сергей Краснов

Системный администратор Linux

тел.: 8 800 555-91-15

https://scloud.ru/

[https://scloud.ru/images/mail/information/block1SPARKRisks.jpg]<https://scloud.ru/1c_programm/1cpark_riski.php?m4>

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Yifan Wang 2020-11-19 10:46:24 Failed to configure the Python Environment
Previous Message Dave Page 2020-11-18 15:10:45 Re: One storage for all pgAdmin users