Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Osm-0000so-1D for pgsql-novice@arkaria.postgresql.org; Thu, 21 Jan 2021 01:35:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l2Osk-0005oc-VN for pgsql-novice@arkaria.postgresql.org; Thu, 21 Jan 2021 01:35:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Osk-0005oV-P5 for pgsql-novice@lists.postgresql.org; Thu, 21 Jan 2021 01:35:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l2Osh-0002hQ-Rq for pgsql-novice@lists.postgresql.org; Thu, 21 Jan 2021 01:35:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 10L1ZQYC798385; Wed, 20 Jan 2021 20:35:26 -0500 From: Tom Lane To: Santosh Udupi cc: pgsql-novice@lists.postgresql.org Subject: Re: Postgres 12 - Generated Columns - Backup/Restore In-reply-to: References: Comments: In-reply-to Santosh Udupi message dated "Wed, 20 Jan 2021 17:32:44 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <798383.1611192926.1@sss.pgh.pa.us> Date: Wed, 20 Jan 2021 20:35:26 -0500 Message-ID: <798384.1611192926@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Santosh Udupi writes: > My Postgres 12 database tables have generated columns. I use pg_dump to > backup the database but when I restore using pg_restore, the generated > columns are empty. How do I trigger creating the data in the generated > columns? Can you give a fleshed-out example of what you're doing? regards, tom lane