Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bnLh2-00031S-NS for pgadmin-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 08:18:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bnLh2-00043o-3S for pgadmin-hackers@arkaria.postgresql.org; Fri, 23 Sep 2016 08:18:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bnLh1-00043i-Na for pgadmin-hackers@postgresql.org; Fri, 23 Sep 2016 08:18:47 +0000 Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bnLgx-0001s0-Rl for pgadmin-hackers@postgresql.org; Fri, 23 Sep 2016 08:18:46 +0000 Received: by mail-it0-x230.google.com with SMTP id o3so8396746ita.1 for ; Fri, 23 Sep 2016 01:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QZPXM8oZ/RJsE/ThHszvIaPC4iqe/EIpJihZ7YvgH34=; b=YC+IQyoB4c8v4SkfnRUpKTyMazoEkL64r2kosnSOJk3wUMD+buR0SisBx1rswnet5Z NAYeMHpjgy1tocIQpU6+RFQG42jpdbLTSoWIc1gnkDnYZq9f845mV/eNRKw8Vhl+A9Vr C87a8kspnkMEPapb82L7E/GAN3gl1zWzOISqTLdk6PXMmEKAXHnJgs+aJxu+NrHPCNYK 8l1Qbko8XI46wekYeRmNP+m9wMNrN2jbszRnyDbXx3mEZi9qVu8JIUigqpKHYNWgMuVZ R+wisoyxzMNzWxsDahHAaS14dC6fBQFuIXnJJMm/9CRFmdxOqtPZULAIXsq6bGRKycyd bNUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QZPXM8oZ/RJsE/ThHszvIaPC4iqe/EIpJihZ7YvgH34=; b=EEcIzVVllGoOt3qBL0icFPSnHdeaHBeOZtHKe+vyOC49ygbvAO1LCSXpyiP/qikPMG 2S0gJ5wlmolCLoDNjvWwvDAznBQxipiifIKwYcMuAQ398bs2AFPHJ9ku9gouPcJkEbEb kFacomlJIuLZF1x/nVs2kEbgYi0mQ5y+LkutHNL9O711Y42F1cvxPMawEpuZBNw6htJM 9hzhnSO0efFx1q5z42QAuUtAEiyDwUqvvzbYBpB7POLuNc96vCSChe2UwwtCU6hy/LAH OHW1oIxXafhRJF5BEoZdmQds9g67hye+6eoN0W2pHITxlDsgGNY2Z3IBPrfY3qXuDE26 /Ptw== X-Gm-Message-State: AA6/9RleN1pp5W+wZOPc8YykRWdYSKFaEQm+AQoKwHkTyYM7KPkkqv53aDGHNP/qUquG8x/dtUCChJuod9Rts3/+ X-Received: by 10.36.34.204 with SMTP id o195mr1924093ito.29.1474618721985; Fri, 23 Sep 2016 01:18:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.50.212 with HTTP; Fri, 23 Sep 2016 01:18:21 -0700 (PDT) In-Reply-To: References: From: Ashesh Vashi Date: Fri, 23 Sep 2016 13:48:21 +0530 Message-ID: Subject: Re: [pgAdmin4][Patch]: Background process executor won't run(in case of Backup, restore) in Windows only To: Dave Page Cc: Surinder Kumar , pgadmin-hackers Content-Type: multipart/alternative; boundary=001a114057481a79e4053d286d26 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --001a114057481a79e4053d286d26 Content-Type: text/plain; charset=UTF-8 On Fri, Sep 23, 2016 at 1:47 PM, Dave Page wrote: > On Fri, Sep 23, 2016 at 5:59 AM, Surinder Kumar > wrote: > > Actually It doesn't broke anywhere, instead It runs successfully. On > > debugging I found that it runs the subprocess.Popen() utility but it > doesn't > > run internally the pg_dump utitliy. On running the same command on > windows > > cmd prompt it works. > > Then on setting parameters close_fds=False and cmd_shell=True, It works. > > I ran backup in Google Chrome. > > It certainly runs pg_dump for me - I see the output in the monitoring > dialogue, and I get a dump file at the end. > > I also use Chrome. > It may differ for different version of python. -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* > > > > -- > Dave Page > Blog: http://pgsnake.blogspot.com > Twitter: @pgsnake > > EnterpriseDB UK: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > > > -- > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgadmin-hackers > --001a114057481a79e4053d286d26 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
On F= ri, Sep 23, 2016 at 1:47 PM, Dave Page <dpage@pgadmin.org> w= rote:
On Fri, Sep 23, 2016 at 5:59 AM, Surinder Kumar
<surinder.kumar@enter= prisedb.com> wrote:
> Actually It doesn't broke anywhere, instead It runs successfully. = On
> debugging I found that it runs the subprocess.Popen() utility but it d= oesn't
> run internally the pg_dump utitliy. On running the same command on win= dows
> cmd prompt it works.
> Then on setting parameters close_fds=3DFalse and cmd_shell=3DTrue, It = works.
> I ran backup in Google Chrome.

It certainly runs pg_dump for me - I see the output in the monitorin= g
dialogue, and I get a dump file at the end.

I also use Chrome.
It may differ for different version= of python.


--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA:=C2=A0Enterprise PostgreSQL Company





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

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-ha= ckers

--001a114057481a79e4053d286d26--