Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dFPfa-00071Y-Mk for pgsql-sql@arkaria.postgresql.org; Mon, 29 May 2017 18:45:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dFPfa-0002ZC-4m for pgsql-sql@arkaria.postgresql.org; Mon, 29 May 2017 18:45:34 +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 1dFPfZ-0002YT-CT for pgsql-sql@postgresql.org; Mon, 29 May 2017 18:45:33 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dFPfI-0004GY-SW for pgsql-sql@postgresql.org; Mon, 29 May 2017 18:45:32 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1FA8E20B74; Mon, 29 May 2017 14:45:15 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Mon, 29 May 2017 14:45:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=vPkG0xjFcQe3h7SJ8q nyB3Z6Ju+W3pC/d5KmWVG1HcE=; b=ecjuj12kdaRmhqUx2VxkefUfKbcFrus+ZZ 4NHjvQ2Hj50GJd/05wAEMSSgVrJac10RUeISwBbJWAFP+vmntMN5pc6EUE/L6015 tvHaLPIWPNf3uOkjlafqdeGGwDVG9fd0kMrNB2997ODvStO9RcX9hbCkEjR/CJtD I+PFybDtX2MzFfkeOnI3s+lv27+7Ng9ttmQUPhRQBg7i4qjtwOX9+YX+JeTonqjU aXk+ClylhzzuPXxbOrz/uKip5JPtfXitO4RirWw7iPjxUOD+MCLHZIK02umB60OC CKmxmc8rDIEyBhrVZadJ+uHeNxbl2BtlHyRpnR638FBNk/JOCwPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=vPkG0xjFcQe3h7SJ8qnyB3Z6Ju+W3pC/d5KmWVG1HcE=; b=atbgMTwU IHkuHaGea0xC1hU/o6ArvGKnijvTmxJyLSRlwGdii0QGzp6dwsfvESafyzob8o8c UH3Fej3YmJLg2WzY/ir597vF96231S/6ExiMsXjKnrkV5rXgOeBzZcBJpzh/EOF6 Oy8kE4IhlGjlJFlCXe8LJ3TaHbIcZsVGLK5EnXZfwny+1MQbxwkviCceOrnqp1Yv 8lbffuIsHtS8lIef4XV+Pzm8haDh/JJdwmwWP+etZaqNLOqQtaswdGlpYyHt9zN8 viC93aLY9n3ZE92VRMqC80S75tczKWA0F9q//7VHzTLNaqVOhkeaP7LOBYm2u+Ho YhHYBZiXLDA+6w== X-ME-Sender: X-Sasl-enc: inkkM+2x7EooQcPojucFz+3+KaBcCTHhah4RCUumo5Vu 1496083514 Received: from [192.168.1.2] (75-172-126-41.tukw.qwest.net [75.172.126.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 8E801240B0; Mon, 29 May 2017 14:45:14 -0400 (EDT) Subject: Re: Lost my tablespace To: tel medola Cc: pgsql-sql@postgresql.org References: <2a418dab-d17f-9d3a-0ac4-53678c1ce16f@aklaver.com> <97bd2743-46c3-32c4-7b3f-62def38aea65@aklaver.com> From: Adrian Klaver Message-ID: <32bb9df2-3b4d-95cb-1f82-8da675536a9b@aklaver.com> Date: Mon, 29 May 2017 11:45:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 05/29/2017 11:21 AM, tel medola wrote: > As to below: > > 1) In the below you are saying that you used that template to try to > recreate the original tables, correct? > > /No.I have not done anything yet to try to retrieve the information, > even though they are there. I just can not redo the links, even with the > inherit command already executed./ It seems you are doing something, that is what I am trying figure out. What INHERIT command? Also can you show in psql: \d+ (The tables involved) > > 2) Why the INHERIT/NO INHERIT/INHERIT sequence? > > /Because if I do not undo the inheritance, it will copy from it, to > itself. After the copy is finished and I make sure everything is in > place, I delete the original table and redo the links. With this, all my > data is a new drive and with the link redone, my SQL's will function > normally as if it were just a table./ But none of this was actually done when you tried to recover the tables. > > 3) If 1) is correct did the COPY actually do anything? > > /I only do this when I move my data to a new drive./ -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql