Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz5BD-00034A-SJ for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2017 18:10:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dz5BD-0000OF-Bj for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2017 18:10:59 +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 1dz5B3-00007r-Sd for pgsql-hackers@postgresql.org; Mon, 02 Oct 2017 18:10:50 +0000 Received: from sub4.mail.dreamhost.com ([69.163.253.135] helo=homiemail-a24.g.dreamhost.com) by makus.postgresql.org with esmtps (TLS1.1:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dz5B1-0000pZ-Dd for pgsql-hackers@postgresql.org; Mon, 02 Oct 2017 18:10:48 +0000 Received: from homiemail-a24.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTP id CF64070F678A; Mon, 2 Oct 2017 11:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cryptonector.com; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=cryptonector.com; bh=av+IMJGnzix7+Z I0PZZPpQ45Rhs=; b=Qcdyk2ig3O/t0g54bCYJaow7l20ooML/xzkMtdI9n05SDT 4YZhnLrrEzlu/RxevIbkfeeaL7/0t5p5SFdpQQcImYVWGgteufvQ66u+z8CISdKP VxRQP89egioqq41Z5TxJ3EJV5kE6vpFQJl3P6OyXonvoP28f/V1bfoyV6l4jk= Received: from localhost (cpe-70-123-158-140.austin.res.rr.com [70.123.158.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: nico@cryptonector.com) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTPSA id 3E2FE70F6789; Mon, 2 Oct 2017 11:10:45 -0700 (PDT) Date: Mon, 2 Oct 2017 13:10:43 -0500 From: Nico Williams To: Adam Brusselback Cc: pgsql-hackers Subject: Re: generated columns Message-ID: <20171002181042.GI1251@localhost> References: <20171002152338.GH1251@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Mon, Oct 02, 2017 at 12:50:14PM -0400, Adam Brusselback wrote: > I know that for my use-cases, having both options available would be very > appreciated. The vast majority of the computed columns I would use in my > database would be okay to compute on read. But there are for sure some > which would be performance prohibitive to have compute on read, so i'd > rather have those stored. > > So for me, i'd rather default to compute on read, as long storing the > pre-computed value is an option when necessary. Sure, I agree. I was just wondering whether there might be any other difference besides performance characteristics. The answer to that is, I think, "no". -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers