From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ben Madin <ben@ausvet.com.au>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: index numbers in pg_restore list
Date: Fri, 14 Aug 2020 12:45:17 -0400
Message-ID: <648142.1597423517@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+weYr3mSoL4O=JDOyPpB6O8S_xJGsjwZNFPnsodJEBjcTBArg@mail.gmail.com>
References: <CA+weYr3mSoL4O=JDOyPpB6O8S_xJGsjwZNFPnsodJEBjcTBArg@mail.gmail.com>
Ben Madin <ben@ausvet.com.au> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ben@ausvet.com.au
Subject: Re: index numbers in pg_restore list
In-Reply-To: <648142.1597423517@sss.pgh.pa.us>
References: <CA+weYr3mSoL4O=JDOyPpB6O8S_xJGsjwZNFPnsodJEBjcTBArg@mail.gmail.com> <648142.1597423517@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox