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 1iqGs5-0004Y6-F3 for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2020 13:32:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iqGs3-0006c0-Bo for pgsql-hackers@arkaria.postgresql.org; Sat, 11 Jan 2020 13:32:07 +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 1iqGs2-0006bs-Lf for pgsql-hackers@lists.postgresql.org; Sat, 11 Jan 2020 13:32:06 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iqGrz-0007Yt-1K for pgsql-hackers@postgresql.org; Sat, 11 Jan 2020 13:32:04 +0000 Received: by mail-wm1-x343.google.com with SMTP id p9so4846785wmc.2 for ; Sat, 11 Jan 2020 05:32:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=3a2v1b1lSiwiVhX23KNk9Jy7pZ96HzyTAMN2kLHOJng=; b=sldBka5QLTg+yl/9WpZBOyRF5jTJuJEkiV2qmled/ScZ/alRGaYJUG3LLN6t5YyzF/ kkZgv0qWaw6+xrTmbRlTaBCyxHIdHrw6Dhm9Lf3kMY9ihgie3d515wZM0NEbfbMboeZw snojLfd4aJM85RyO2+tDIDse3mkrrCF7eOkcr1b+TXkiOGNqgnhSpEW9I1CDTeDYuhME YIUGG2wURBlWDjMpSpCecpRYKeAWCpQdApsV2LsJuDqhEv9fWjdRr1c4uhhqV40tQ3uZ Jvw3sJ/hGM+4eLhSge+c/RRGJl6P+4jY7Z0OQPB+C5wba4gvOsrrq7olmiuEuVheSLIq ubqg== 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; bh=3a2v1b1lSiwiVhX23KNk9Jy7pZ96HzyTAMN2kLHOJng=; b=klkYsFtdaQerDqtVOVrsXh1vupxfSe/Bn1HELei/Hnh7cK5HHyR7c63W2vJ7jmdNNF y8h9jp7hLDpwUClL1izRXyou7vd99PhofOQnH9ZCbuzbWoMKJfhEkAfHKAPcLqz7CCp9 BMLHf5MbGieXapDB2dmy+ybhECxYXeuJmFAthVLZxsBCaNY9kX5aVEUUuz8SXdWJlY9P 9nYBnXS6p/gu4iBzwvVudcrPTu++QANFdz7MA3ZnvhpmCe3X7l9bpgga7lpDWVYKKw+q gBNAI5hnO/qR1tY4ojKx8XpYim6/OpWxrQlAjL98VRBU5dzgGLQT6PosdWQvDczMBpOG zliQ== X-Gm-Message-State: APjAAAV6dwCjY8MfoEvvAR2n3Dwc3ZX3ad8tVJAdKX+ubp3TfuErP1eD ZldDd7a5Mf6KaOtamd7yUwTo2g== X-Google-Smtp-Source: APXvYqyttcVmxGoTvNw9g7LruHwlf76lX/abwUmafqylgxwn54YvIbMORWY33iVESoOMR0ZOZg2CyA== X-Received: by 2002:a05:600c:2c7:: with SMTP id 7mr9816237wmn.87.1578749521536; Sat, 11 Jan 2020 05:32:01 -0800 (PST) Received: from localhost (ip-86-49-253-92.net.upcbroadband.cz. [86.49.253.92]) by smtp.gmail.com with ESMTPSA id g2sm6414341wrw.76.2020.01.11.05.31.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jan 2020 05:32:00 -0800 (PST) Date: Sat, 11 Jan 2020 14:31:59 +0100 From: Tomas Vondra To: David Fetter Cc: Andrew Gierth , Kyotaro Horiguchi , pgsql-hackers@postgresql.org Subject: Re: Efficient output for integer types Message-ID: <20200111133159.ppxnocexkdduo4m6@development> References: <20190920210916.GF31596@fetter.org> <20190920211813.GG31596@fetter.org> <87h856pekw.fsf@news-spur.riddles.org.uk> <20190921060835.GH31596@fetter.org> <87a7ayp4bm.fsf@news-spur.riddles.org.uk> <20190922215804.GL31596@fetter.org> <87pnjrns08.fsf@news-spur.riddles.org.uk> <20190923213506.GN31596@fetter.org> <20190924043018.GO31596@fetter.org> <20190924052620.GP31596@fetter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190924052620.GP31596@fetter.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, Any plans regarding committing this patch? I see the thread is silent since September 24, when the last patch version was posted. The patch is already marked as RFC since December, when David changed the status. I don't have any opinion whether the patch is RFC or not (it might well be), but IMHO it should have been mentioned in this thread. I did a quick test to see how much more efficient this is, and for a table with 10 bigint columns and 5M random rows the COPY to /dev/null went from 3000 ms to ~2700 ms. That's not the 30% speedup mentioned by David in the first message, but 10% is still pretty nice. Of course, for real-world use cases the speedup will be lower because of using other data types too, I/O etc. But it's still nice. So, is anyone opposed to pushing this? If not, who'll to do that? I see Andrew Gierth was involved in the discussions on IRC and it's related to the Ryu patch, so maybe he want's to take care of this. Andrew? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services