Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1drNQE-0002Vl-2W for pgsql-performance@arkaria.postgresql.org; Mon, 11 Sep 2017 12:02:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1drNQD-0006tr-LQ for pgsql-performance@arkaria.postgresql.org; Mon, 11 Sep 2017 12:02:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1drNQC-0006qT-OK for pgsql-performance@postgresql.org; Mon, 11 Sep 2017 12:02:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1drNQ5-0002fF-Qa for pgsql-performance@postgresql.org; Mon, 11 Sep 2017 12:02:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8BC2SvS011321; Mon, 11 Sep 2017 08:02:28 -0400 From: Tom Lane To: Mariel Cherkassky cc: pgsql-performance@postgresql.org Subject: Re: postgresql 9.6 data directory fs becomes full In-reply-to: References: Comments: In-reply-to Mariel Cherkassky message dated "Mon, 11 Sep 2017 12:42:01 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11319.1505131348.1@sss.pgh.pa.us> Date: Mon, 11 Sep 2017 08:02:28 -0400 Message-ID: <11320.1505131348@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org Mariel Cherkassky writes: > My app does the next things on 20 tables in a loop : > 1.truncate table. > 2.drop constraints on table > 3.drop indexes on table > 4.insert into local_table select * from remote_oracle_table > 4.1.Recently I'm getting an error in this part : SQLERRM = could not extend > file "base/16400/124810.23": wrote only 4096 of 8192 bytes at block > 3092001 > 5.create constraints on table > 6.create indexes on table. Hm, are you committing anywhere in this loop? If not, the old data remains on disk till you do end the transaction. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance