Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ekyRM-0003rR-57 for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 20:41:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ekyRK-00027j-4M for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 20:41:34 +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 1ekyRJ-00027Z-Jj for pgsql-general@lists.postgresql.org; Sun, 11 Feb 2018 20:41:33 +0000 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ekyRG-00019d-LA for pgsql-general@postgresql.org; Sun, 11 Feb 2018 20:41:31 +0000 Received: by mail-wr0-x22d.google.com with SMTP id v65so6458018wrc.11 for ; Sun, 11 Feb 2018 12:41:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to:priority :user-agent; bh=Sw6Ckyt2Vg7X9FnnObsXEwaS5hJIpSE+lNk9VM8oqsM=; b=KSYAzdRsyuJMANYi+6dUvqMlIiyGiiu1eEjnlePkyK8oSymmP5w5LFF+kfzlXv+2mB CIq3QxeEiYx8tsR1se976LYh3kMoTnhfQioZ98Saq8v4SMkKxPownpFZ+36JHVyFV+1x t/UHSKf1ntTPUJaXzii7vYimAhAclJMs1+qywp/yiNlMpqAJGbXK83338rBGp80og79H BGz4OxnEEtzbQ50yXAdbGXIVm01zllt82Gu2ZvxGXMf2TcB2rK40QP/Y2Gk8nCq6i0fz 3KIJAz5UqbUhkyWU/sm5qU/QCpwQKBVS4+LJfMIJOK5m4C3v7Sq7egxGpFp3RG2/jEiZ 1IFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:priority:user-agent; bh=Sw6Ckyt2Vg7X9FnnObsXEwaS5hJIpSE+lNk9VM8oqsM=; b=UQvhw+LBsNyFfNSMZhEzkETvhIeyoCD1a1sL8pz/OQ0VHbrCfajPJmIx5a6kZJeyCW 6YWYe8O+cVotOG9pT+BLmprBsk+JG9lVEXz7r2J0otcilohaEXRs30W0UfuLTgoOONwg +SA7rH7QTRN7ly+rSuZdTkNllG6p8EcJx5U3R7fnY4O7PsxMmyJgDNBzn9qMENGfrW04 nlIk9haTFPB7EEXKP/hkfOujPnf3NRtMh/yFzIV9qKOphO6xLKV1hC3g4dqQcyBxZ0Td cgrhTWZ57jrUw25UqFrZwn2/2MG1iapVgbYHMBfO4pF6hTmF4GYRYHEqGpMPGsf4LA8q W5Lw== X-Gm-Message-State: APf1xPDs421JMYWfh3LQft508RBx0tuG8FKdElUATdNUTZNbclJrSjQ/ Yz7saX2mhVitZE/J3C9tcjk= X-Google-Smtp-Source: AH8x226E0S9b3j8utm/LMrdnsMB0R/Gl7n+XOrMC4Okpjiw1RgLBWxic1TCD/1vLe3oEzxnVtzkNrA== X-Received: by 10.223.152.16 with SMTP id v16mr1602035wrb.70.1518381689011; Sun, 11 Feb 2018 12:41:29 -0800 (PST) Received: from localhost (81-66-114-185.rev.numericable.fr. [81.66.114.185]) by smtp.gmail.com with ESMTPSA id 2sm6756595wra.58.2018.02.11.12.41.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Feb 2018 12:41:28 -0800 (PST) Date: Sun, 11 Feb 2018 21:41:26 +0100 From: Nicolas Paris To: Andres Freund Cc: Tomas Vondra , Adrian Klaver , pgsql-general@postgresql.org Subject: Re: New Copy Formats - avro/orc/parquet Message-ID: <20180211204126.i3sbze3dor2llxty@gmail.com> References: <20180210151304.fonjztsynewldfba@gmail.com> <78a8f0bd-4b6f-b791-b6ce-80b19e2b6d1b@aklaver.com> <20180210153011.o2w3tdriqmwvahph@gmail.com> <3274b427-fe3a-89fc-2302-52082bf817aa@2ndquadrant.com> <20180211171653.nvb26tbu774tqgiy@alap3.anarazel.de> <20180211200012.2agrfocyaf42td5v@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Priority: normal User-Agent: NeoMutt/20170714-155-820ab5 (1.8.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Le 11 févr. 2018 à 21:03, Andres Freund écrivait : > > > On February 11, 2018 12:00:12 PM PST, Nicolas Paris wrote: > >> > That is true, but the question is how significant the overhead is. > >If > >> > it's 50% then reducing it would make perfect sense. If it's 1% then > >no > >> > one if going to be bothered by it. > >> > >> I think it's pretty clear that it's going to be way way much more > >than > >> 1%. > > > >Good news but not sure to anderstand why. > > I think you might have misunderstood my reply? I'm saying that going through PROGRAM will have significant overhead. I can't quite make sense of the rest of your reply otherwise? True, I misunderstood. Then I agree the computation overhead should be non-negligible. I have also the storage and network transfers overhead in mind: All those new formats are compressed; this is not true for current postgres BINARY format and obviously text based format. By experience, the binary format is 10 to 30% larger than the text one. On the contrary, an ORC file can be up to 10 times smaller than a text base format.