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 1p304f-0002lf-Ef for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2022 19:27:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p304d-0000la-PW for pgsql-bugs@arkaria.postgresql.org; Wed, 07 Dec 2022 19:27:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p2wLp-0008Dx-V4; Wed, 07 Dec 2022 15:28:50 +0000 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1p2wLj-0006Ts-Jz; Wed, 07 Dec 2022 15:28:49 +0000 Received: by mail-qv1-xf30.google.com with SMTP id r15so12857867qvm.6; Wed, 07 Dec 2022 07:28:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:reply-to :references:in-reply-to:message-id:date:cc:subject:to:from:from:to :cc:subject:date:message-id:reply-to; bh=2XtinoQYhN7G3RJKOHoBfqRErqYY3YdgiAwjvey5O8w=; b=ZBqfnOxQphiPPzhpnkB6tYMp0Igl+aBeK7mtlK6ivDJZEPL3h95EQJNVR8zu6OHQCH +DYCrZO8ku4nfT+kBdZXdVI/NqJJj/Zj53D7dvyHyX+nC0YvbHvJXdDAQhAhha2ggmGn 0PMmXECe9NH4sBlRN9gv+Bs/ZMlEmbBIvGzigo+h1eaPh35Qt5sPLzh3nIymzPxj4NlK feOgHlDiRYFoCHNO/sbKzIjDCSiR+nsPs/xQzsw9tOwvEBHacIU9y77MM1o+WmNvEGtv sPkHx8MU9r3oT72NBzVXRXgKZYLvmbEigqOJt5y1mBttB4YuiVimeRYpChOP1yAwRPlR 2vIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:reply-to :references:in-reply-to:message-id:date:cc:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2XtinoQYhN7G3RJKOHoBfqRErqYY3YdgiAwjvey5O8w=; b=oYFYhLxYhVc+LbFfNo5WvGR3MRMPLJcej15eW4isYppe210o5X7E48Xa3zj4bYnCti 9NFDViCb6x2OCCW/dejONhi/AeTy04FPKA+Lu9Oa7LM5KnjB854Q2wXOvVitszPARNMN WPYzgiU4yT5iBNwYreAX8gjnHkQp7oEduU519B1TSH2IfWKJdE9Rna0lMk6nHJ4YnbYq 55gvFgwxFKqTqe/islFKfLITQbyv5U73fyJ+MdCGRKGGJWesXXhcoxfLZDgymvXCLKNF uYm/Tp882agjwk//wvmMT58jJbBrFH/i+YHhbvqBxgHGaHqff3ghOaibaBlGJsrP1scr KfiQ== X-Gm-Message-State: ANoB5pnHAqVvAtiCRnv7v792al+ovXUL8Xqd45TjFecPvtWOBHmzZoSL 13mj/7AiNMRFDIaDyUNXJnU= X-Google-Smtp-Source: AA0mqf6qh4z9jWgcZj1OJVfaT9aRjW9TsK6YuBeOoax/tNmiZP9QkMkzSxITFngv2HU0CfMy0tUYSQ== X-Received: by 2002:a05:6214:161:b0:4c6:f7a1:90b1 with SMTP id y1-20020a056214016100b004c6f7a190b1mr44262383qvs.96.1670426922004; Wed, 07 Dec 2022 07:28:42 -0800 (PST) Received: from [192.168.128.53] (c-71-234-60-75.hsd1.ct.comcast.net. [71.234.60.75]) by smtp.gmail.com with ESMTPSA id l5-20020a05620a28c500b006cf19068261sm17229738qkp.116.2022.12.07.07.28.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2022 07:28:41 -0800 (PST) From: "Nunya Business" To: "Tom Lane" Subject: Re[4]: PG 14.5 -- Impossible to restore dump due to interaction/order of views, functions, and generated columns Cc: pgsql-general@postgresql.org, pgsql-bugs@postgresql.org Date: Wed, 07 Dec 2022 15:28:28 +0000 Message-Id: In-Reply-To: <3892582.1670359646@sss.pgh.pa.us> References: <3635234.1670340237@sss.pgh.pa.us> <3892582.1670359646@sss.pgh.pa.us> Reply-To: "Nunya Business" User-Agent: eM_Client/9.1.2109.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom, Thanks for the insight, I didn't even consider the search path being an=20 issue and I should have. I saw it explicitly specified in other parts=20 of the dump and just assumed it was being done in the function as well. =20 For example, the CREATE statements in the dump output all specify the=20 schema name even though it's not specified in the original statements. =20 I suppose expecting statements in the function body to be similarly=20 qualified in the dump is unreasonable considering the complexity of=20 doing so. Anyway, thanks for the tip. If I run into something like this again in=20 the future I'll have a better idea of where to look and how to recover=20 what data I can in an emergency. ------ Original Message ------