Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw620-0000pM-7P for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 14:38:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hw61x-0004j3-OW for pgsql-general@arkaria.postgresql.org; Fri, 09 Aug 2019 14:38:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hw61v-0003y5-MD for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2019 14:38:09 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hw61s-0006kC-KD for pgsql-general@lists.postgresql.org; Fri, 09 Aug 2019 14:38:06 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 5D03B21C08; Fri, 9 Aug 2019 10:38:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 09 Aug 2019 10:38:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=F gYP4l8irHeOrxSyQFAUcIcKJjf+qXM+Tz6/5FFaqmU=; b=BKqd5aFbo/KHnGKwf Xnun+giswHSkaz/Iv2stAt5N5CNxRLYjbOuow4F7qfWapd1/gvNKTDEYWuEgGaDA Sl5qvO1M5NgoV1eR3NDiaVFvzPFQOSMQTPEwuWyZRAS50AV2WK+Wx3qeczUGRXz3 P6p/eK/9FpRChg++y2OaJYu+ojILcGiEXAl8+eXInYFYlfiJozuDI/qXOnm2sTLI VF0pEKxctLHvwR8W2zOpR+jqgZi+1rPXf7cT6qEW6u6ABGGDRUlGk9B0KaBhJgpf fcfikDFzespQVLbk/4muuj9mwi0wzhSbXHjWZIkoouRjSATKyuchqty5VJrY60UU jfWIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=FgYP4l8irHeOrxSyQFAUcIcKJjf+qXM+Tz6/5FFaq mU=; b=AeVBtKla5YXIAyLhrptTNqGlwBpVmi9riJ1irn4L6P3hvzlDUnZWpQeMR Auaaa4ZSxnibdXLpNnpVHP1/h0MpI0SLRpx3r+NxpsKVC0xR72q2FLBb/nfJG+La yyweYGBswER9Pwo9/6Nik/9i/xmh0MiOVXYCqIVc6C0ZfTpcpkeqFYrhIGpR28uw b21HwPKjnzzOd/v/Lxm2LFkoEU3ySDSKNaZQhBQdDpL3JdRy66dDLITfXz+/7xND cmLdoMKH8uZ6dvZW2mjLueAu5hUolpFdpo1GLqy872SZLzjBVgjaJOHrXisHgBrU 8+dfj5uWq5SljrYd+dK5w8K6E4VDg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddruddujedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecukfhppeejuddrvdduvddrudehtddrvd dtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghk lhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id 6F8B8380088; Fri, 9 Aug 2019 10:38:02 -0400 (EDT) Subject: Re: Generate test data inserts - 1GB To: Shital A , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Fri, 9 Aug 2019 07:38:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/9/19 4:12 AM, Shital A wrote: > Hello > > Postgresql 9.6 > > Need to generate 1GB test data in very less time. I got some techniques > online but they take around 40mins for 400GB. Any quicker way? 1) Postgres version? 2) Data going into single table or multiple tables? 3) What is the time frame you are trying to achieve? 4) What techniques have you tried? 5) If you need only 1GB why the 400GB number? > > > Thanks. > -- Adrian Klaver adrian.klaver@aklaver.com