pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nunya Business <nb3425586@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Cc: pgsql-bugs@postgresql.org
Subject: Re[4]: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns
Date: Wed, 07 Dec 2022 15:28:28 +0000
Message-ID: <em4218d8ff-55c0-49f0-9ea0-af9b89aa74c5@81da44b0.com> (raw)
In-Reply-To: <3892582.1670359646@sss.pgh.pa.us>
References: <emad8fa821-2230-4b8b-893b-cb2b8b376e9b@81da44b0.com>
	<3635234.1670340237@sss.pgh.pa.us>
	<emd5c018bd-ee54-4ca6-b61d-741ad84aa451@81da44b0.com>
	<3892582.1670359646@sss.pgh.pa.us>

Tom,

Thanks for the insight, I didn't even consider the search path being an 
issue and I should have.  I saw it explicitly specified in other parts 
of the dump and just assumed it was being done in the function as well.  
For example, the CREATE statements in the dump output all specify the 
schema name even though it's not specified in the original statements.  
I suppose expecting statements in the function body to be similarly 
qualified in the dump is unreasonable considering the complexity of 
doing so.

Anyway, thanks for the tip.  If I run into something like this again in 
the future I'll have a better idea of where to look and how to recover 
what data I can in an emergency.




------ Original Message ------


Message-ID: <em4218d8ff-55c0-49f0-9ea0-af9b89aa74c5@81da44b0.com>
Permalink:  ../em4218d8ff-55c0-49f0-9ea0-af9b89aa74c5@81da44b0.com/
Also on:    postgresql.org/message-id/em4218d8ff-55c0-49f0-9ea0-af9b89aa74c5@81da44b0.com

 · 

reply

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: nb3425586@gmail.com, tgl@sss.pgh.pa.us, pgsql-bugs@postgresql.org
  Subject: Re: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns
  In-Reply-To: <em4218d8ff-55c0-49f0-9ea0-af9b89aa74c5@81da44b0.com>
  References: <emad8fa821-2230-4b8b-893b-cb2b8b376e9b@81da44b0.com> <3635234.1670340237@sss.pgh.pa.us> <emd5c018bd-ee54-4ca6-b61d-741ad84aa451@81da44b0.com> <3892582.1670359646@sss.pgh.pa.us> <em4218d8ff-55c0-49f0-9ea0-af9b89aa74c5@81da44b0.com>

* 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