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 1ekxnU-00010d-M8 for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 20:00:24 +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 1ekxnT-0002q8-MU for pgsql-general@arkaria.postgresql.org; Sun, 11 Feb 2018 20:00:23 +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 1ekxnT-0002py-93 for pgsql-general@lists.postgresql.org; Sun, 11 Feb 2018 20:00:23 +0000 Received: from mail-wr0-x232.google.com ([2a00:1450:400c:c0c::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ekxnO-0000EH-2x for pgsql-general@postgresql.org; Sun, 11 Feb 2018 20:00:21 +0000 Received: by mail-wr0-x232.google.com with SMTP id 41so13184071wrc.9 for ; Sun, 11 Feb 2018 12:00:16 -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:in-reply-to:priority:user-agent; bh=Qiy3KePVnmd2uJdVLn96MCG0Iv4gynM/isfM/jZ67Nw=; b=SQURVUtY5ZBW0OAU4eL+o0KNJyvwFTICvWoOkklZ21VV7q+9pnvCJ3w3ptUAfw/IMe nlci0XKhS2FjO1mxodFq9vWnFu7eHX7fU6CcqxfU65HTW+ZwCAkKc/814wSFOvGn0MIi xBXtC0q93QlDoxrC0pfixS/qrUCqIAcGP5CherhKjAI88DMgEhLR/cyaVAFmw/ANQftw fm96S5jGjN/AaLW7Y4bwDdzRYh/9hdhoZSnWyGeE6z3IRh+tsrlGADPj4rhvoWiptZAo fQFd/dWydgBYIEPcuA/M2zf9ectV03Fqj28s3OZI7+yl33N8CWoGRfYTmYI2q9lgTgvZ Jlhg== 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:in-reply-to:priority:user-agent; bh=Qiy3KePVnmd2uJdVLn96MCG0Iv4gynM/isfM/jZ67Nw=; b=PZbsel5kWUcy8W9YwhhtHuBmAlG1Wf6PNBUtVJoEPcmNw9+r6WoXL5tjTag7sPz0R8 xQA33QXtxtfyx2wAypuVoDgdF9RjirbkGJNxK79wm9rwW2Jg7cZxfVqE4CIdrSvxOpAJ ErlsbD3YqjKSpHUcXBr4o+VncidUr14Zf0gx7wRbIvFcYqcrcFes/YoiZM06had2NNew TUpIw9NHqx/LRui57XWnpwMp9K5orhwk42JloR3JJJ4S/2MeFj3+IdX0iMVc+W0K/H4l g211Lf/jr3efxFdBXbAmxbiJDdTkUHDGqsZJ7zz5r0vMQy7STvgeGLOcUpA4IZdp3kTn 9DpQ== X-Gm-Message-State: APf1xPAo7aRyhmAmZ3I8U8PBUIJOypT1zJraYCbgY0v7b3kfLJ3n0FDQ RryqY5O7A7TqPs+r6GHYfQE= X-Google-Smtp-Source: AH8x226tDYU63tPo4MhShFJ4iei0zFVCO6H2/jgNGWYHJfsuKVRK8cY2lP0KpbcVH3eJ9Ajo0K3nLQ== X-Received: by 10.223.128.14 with SMTP id 14mr8181599wrk.94.1518379214674; Sun, 11 Feb 2018 12:00:14 -0800 (PST) Received: from localhost (81-66-114-185.rev.numericable.fr. [81.66.114.185]) by smtp.gmail.com with ESMTPSA id 5sm7904063wre.35.2018.02.11.12.00.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Feb 2018 12:00:13 -0800 (PST) Date: Sun, 11 Feb 2018 21:00:12 +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: <20180211200012.2agrfocyaf42td5v@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180211171653.nvb26tbu774tqgiy@alap3.anarazel.de> 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 > > 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. > It's trivial to construct cases where input parsing / output > formatting takes the majority of the time. Binary -> ORC ^ | PROGRAM parsing/output formating on the fly > And a lot of that you're going to be able to avoid with binary formats. Still the above diagram shows both parsing/formating step, isn't it ?