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 1k6cpd-0003NC-SM for pgsql-general@arkaria.postgresql.org; Fri, 14 Aug 2020 16:45:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k6cpc-0007Jn-RR for pgsql-general@arkaria.postgresql.org; Fri, 14 Aug 2020 16:45:28 +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 1k6cpc-0007Jg-Hz for pgsql-general@lists.postgresql.org; Fri, 14 Aug 2020 16:45:28 +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 1k6cpU-00043G-Tm for pgsql-general@postgresql.org; Fri, 14 Aug 2020 16:45:27 +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 07EGjHhD648143; Fri, 14 Aug 2020 12:45:18 -0400 From: Tom Lane To: Ben Madin cc: pgsql-general Subject: Re: index numbers in pg_restore list In-reply-to: References: Comments: In-reply-to Ben Madin message dated "Sat, 15 Aug 2020 00:16:09 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <648141.1597423517.1@sss.pgh.pa.us> Date: Fri, 14 Aug 2020 12:45:17 -0400 Message-ID: <648142.1597423517@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ben Madin writes: > " Is the index number ( the archive ID) assigned at the time of creation > of the archive and not otherwise related to the item in the > original database?" Yes, it's just assigned internally during pg_dump. I think the numbers would hold still as long as you make no DDL changes in the database, but as soon as you do, all bets are off. regards, tom lane