Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz5jz-0005JW-8r for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2017 18:46:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dz5jy-0006Bt-0D for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Oct 2017 18:46:54 +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 1dz5jw-0006Ao-Qn for pgsql-hackers@postgresql.org; Mon, 02 Oct 2017 18:46:52 +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 1dz5jq-0001aE-7R for pgsql-hackers@postgresql.org; Mon, 02 Oct 2017 18:46:51 +0000 Received: from homiemail-a24.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a24.g.dreamhost.com (Postfix) with ESMTP id 3580F70F6787; Mon, 2 Oct 2017 11:46: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=R5M8mOkIhP2+Bf q9MzEOlmjhISM=; b=MGEKNk8+nFAnXe/xZN0xcCrMEbOPwotLMe2P1neLXw7nps /a1DEhGzYO3PgUGmAvHVxhI9b2R36q6cmK/Ym01iYKA0Hd4IVdaiR9JBbpoGsRbF gLp5s8vuWeYUklheVQldimZHfo1Hqc2zpyqsqJACE3uf3E6w7qhAbSQSLQfO0= 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 40A2270F6785; Mon, 2 Oct 2017 11:46:44 -0700 (PDT) Date: Mon, 2 Oct 2017 13:46:42 -0500 From: Nico Williams To: Tom Lane Cc: Adam Brusselback , pgsql-hackers Subject: Re: generated columns Message-ID: <20171002184641.GJ1251@localhost> References: <20171002152338.GH1251@localhost> <20171002181042.GI1251@localhost> <10550.1506969038@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10550.1506969038@sss.pgh.pa.us> 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 02:30:38PM -0400, Tom Lane wrote: > Nico Williams writes: > > On Mon, Oct 02, 2017 at 12:50:14PM -0400, Adam Brusselback wrote: > >> 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". > > What about non-immutable functions in the generation expression? Aha, thanks! Yes, that would be noticeable. Nico -- -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers