Re: Possible to add servers to pgadmin4 via CLI or config files?

2017-09-06 Thread Glen Huang
Got it. Thanks! > On 7 Sep 2017, at 1:53 PM, Ashesh Vashi wrote: > > > On Thu, Sep 7, 2017 at 11:18 AM, Glen Huang > wrote: > Thanks for the detailed explanation. > > Yes, I currently run it the runtime mode. > > Good to know pgadmin4.db will be auto-migrated. > > B

Re: Possible to add servers to pgadmin4 via CLI or config files?

2017-09-06 Thread Ashesh Vashi
On Thu, Sep 7, 2017 at 11:18 AM, Glen Huang wrote: > Thanks for the detailed explanation. > > Yes, I currently run it the runtime mode. > > Good to know pgadmin4.db will be auto-migrated. > > But to prevent it from re-migrating every time the container starts > afresh, I guess it’s better to re-a

Re: Possible to add servers to pgadmin4 via CLI or config files?

2017-09-06 Thread Glen Huang
Thanks for the detailed explanation. Yes, I currently run it the runtime mode. Good to know pgadmin4.db will be auto-migrated. But to prevent it from re-migrating every time the container starts afresh, I guess it’s better to re-add pgadmin4.db every once a while after I have upgraded to a new

Re: Possible to add servers to pgadmin4 via CLI or config files?

2017-09-06 Thread Ashesh Vashi
On Thu, Sep 7, 2017 at 10:43 AM, Glen Huang wrote: > Hi, > > I’m running pgadmin in docker, and I’d like it to contain some servers by > default when the container starts. Is there any way to add servers (ideally > also preferences) via command line or some config files? > > Currently I keep a co

Possible to add servers to pgadmin4 via CLI or config files?

2017-09-06 Thread Glen Huang
Hi, I’m running pgadmin in docker, and I’d like it to contain some servers by default when the container starts. Is there any way to add servers (ideally also preferences) via command line or some config files? Currently I keep a copy of pgadmin4.db after I have configured pgadmin, and put tha

Re: Unable to log to stdout for pgadmin4 in python3

2017-09-06 Thread Glen Huang
That sounds reasonable. Thanks. > On 7 Sep 2017, at 12:50 PM, Murtuza Zabuawala > wrote: > > This is not a bug with pgAdmin4 but anyways you can submit feature request to > provide option to log only on stdout instead of file. > > -- > Regards, > Murtuza Zabuawala > EnterpriseDB: http://www.

Re: Unable to log to stdout for pgadmin4 in python3

2017-09-06 Thread Murtuza Zabuawala
This is not a bug with pgAdmin4 but anyways you can submit *feature request *to provide option to log only on stdout instead of file. -- Regards, Murtuza Zabuawala EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company [image: https://community.postgresrocks.net/]

Re: Unicode "\uFEFF" getting copied from pgadmin 1.6 SQL window

2017-09-06 Thread Murtuza Zabuawala
I am unable to reproduce this issue on MacOS 10.10.5, I tested copy/paste with pgAdmin4 to pyCharm IDE/VSCode both works fine. What type of encoding you have in your IDE? On Thu, Sep 7, 2017 at 3:22 AM, Barrington-Hughes, Alan < alan_barrington-hug...@premierinc.com> wrote: > We are experiencing

Re: Unable to log to stdout for pgadmin4 in python3

2017-09-06 Thread Glen Huang
Thanks for offering the solution. I’ll try to apply it for now. But ideally it could be fixed in pgadmin, since LOG_FILE is now ignored all together. Should I submit a ticket to pgadmin's issue tracker? (does it have one?) > On 7 Sep 2017, at 12:34 PM, Murtuza Zabuawala > wrote: > > I don't

Re: Unable to log to stdout for pgadmin4 in python3

2017-09-06 Thread Murtuza Zabuawala
I don't think that's possible with FileHandler in python. The workaround is to change the logging FileHandler to StreamHandler, If you have access to pgAdmin4 source code in docker then you can try replacing below line (File: ** /pgadmin4/web/pgadmin/__init__.py), fh = logging.FileHandler(config

Unicode "\uFEFF" getting copied from pgadmin 1.6 SQL window

2017-09-06 Thread Barrington-Hughes, Alan
We are experiencing a strange unicode character being copied over with text in pgadmin 1.6 (Mac OS 10.12.6 Here is the SQL window [cid:3EBDF9C1-F541-4111-B62A-086B7E847FAA@premierinc.com] And the pasted result in the development IDE: [cid:CE6838A2-EA2E-4E16-A27D-2984F798763C@premierinc.com] An

Unable to log to stdout for pgadmin4 in python3

2017-09-06 Thread Glen Huang
Hi, I’m running pgadmin4 in docker, and I have set LOG_FILE = '/dev/stdout’ to log to stdout, but when running pgAdmin4.py, it fails with: Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/pgadmin4/pgAdmin4.py", line 56, in app = create_app() File "/usr/lo

Re: function import/export pgadmin4

2017-09-06 Thread QUIDOZ Marie-Claude
Hello Thanks for you answer but the function ask that the csv file for exemple are on a server directory not on a local pc. Thank you MCQ Envoyé depuis mon Sony Xperia SP d'Orange Melvin Davidson a écrit Marie, I think the PgAdmin developers may have confused you. The import/e