public inbox for [email protected]
help / color / mirror / Atom feed[pgAdmin][RM5739]: Export feature(COPY) does not work with SSH tunnel
2+ messages / 2 participants
[nested] [flat]
* [pgAdmin][RM5739]: Export feature(COPY) does not work with SSH tunnel
@ 2020-09-21 10:47 Pradip Parkale <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Pradip Parkale @ 2020-09-21 10:47 UTC (permalink / raw)
To: pgadmin-hackers
Hi Hackers,
Export feature does not work with the SSH tunnel. Attached is the patch to
fix the issue.
--
Thanks & Regards,
Pradip Parkale
Software Engineer | EnterpriseDB Corporation
Attachments:
[application/octet-stream] RM5739.patch (816B, 3-RM5739.patch)
download | inline diff:
diff --git a/web/pgadmin/tools/import_export/__init__.py b/web/pgadmin/tools/import_export/__init__.py
index 878fb1636..7ca7547e8 100644
--- a/web/pgadmin/tools/import_export/__init__.py
+++ b/web/pgadmin/tools/import_export/__init__.py
@@ -342,8 +342,12 @@ def create_import_export_job(sid):
manager.export_password_env(p.id)
env = dict()
- env['PGHOST'] = server.host
- env['PGPORT'] = str(server.port)
+
+ env['PGHOST'] = \
+ manager.local_bind_host if manager.use_ssh_tunnel else server.host
+ env['PGPORT'] = \
+ str(manager.local_bind_port) if manager.use_ssh_tunnel else str(
+ server.port)
env['PGUSER'] = server.username
env['PGDATABASE'] = data['database']
p.set_env_variables(server, env=env)
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [pgAdmin][RM5739]: Export feature(COPY) does not work with SSH tunnel
@ 2020-09-22 04:16 Akshay Joshi <[email protected]>
parent: Pradip Parkale <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Akshay Joshi @ 2020-09-22 04:16 UTC (permalink / raw)
To: Pradip Parkale <[email protected]>; +Cc: pgadmin-hackers
Thanks, patch applied.
On Mon, Sep 21, 2020 at 4:18 PM Pradip Parkale <
[email protected]> wrote:
> Hi Hackers,
>
> Export feature does not work with the SSH tunnel. Attached is the patch to
> fix the issue.
>
> --
> Thanks & Regards,
> Pradip Parkale
> Software Engineer | EnterpriseDB Corporation
>
--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Sr. Software Architect*
*EDB Postgres <http://edbpostgres.com>*
*Mobile: +91 976-788-8246*
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-09-22 04:16 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 10:47 [pgAdmin][RM5739]: Export feature(COPY) does not work with SSH tunnel Pradip Parkale <[email protected]>
2020-09-22 04:16 ` Akshay Joshi <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox