Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id DA880632671 for ; Fri, 2 Apr 2010 11:17:09 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 97940-06 for ; Fri, 2 Apr 2010 14:16:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 16555632621 for ; Fri, 2 Apr 2010 11:16:58 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o32EGvbP010434; Fri, 2 Apr 2010 10:16:57 -0400 (EDT) To: "Kevin Grittner" cc: pgsql-admin@postgresql.org, gnanam@zoniac.com Subject: Re: Database clone stuck in the middle In-reply-to: <4BB5AD0C0200002500030365@gw.wicourts.gov> References: <009e01cad22e$a3121400$e9363c00$@com> <4BB5AD0C0200002500030365@gw.wicourts.gov> Comments: In-reply-to "Kevin Grittner" message dated "Fri, 02 Apr 2010 08:38:36 -0500" Date: Fri, 02 Apr 2010 10:16:56 -0400 Message-ID: <10433.1270217816@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.464 tagged_above=-10 required=5 tests=AWL=0.135, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/12 X-Sequence-Number: 34106 "Kevin Grittner" writes: > "Gnanakumar" wrote: >> my Internet got disconnected in the middle, >> so database cloning was also stuck in the middle. > You putty to the server and run psql from a shell on the database > server? > If so, try putting the word "nohup" in front of "psql" -- that tells > the program to keep running even if the connection is lost. (It is > short for "no hangup", I believe.) The whole thing is quite odd: even if the client connection failed, I'd have expected the CREATE DATABASE command to run to completion before noticing that. (Occasionally we get dinged for the fact that loss of connection doesn't stop the executing command, but in contexts like this it's a good thing.) Using nohup or not on the psql process shouldn't have made any difference. I wonder whether the OP is doing something weird like launching the server as a subprocess of his login shell. Another possibility (if the source is a really big database) is that the copy operation is actually still going on. I'd make real sure the old session is gone before trying to manually remove the allegedly-dead subdirectory. regards, tom lane