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 1pIeyi-0006LF-GI for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jan 2023 00:09:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIeyh-00089K-Dn for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Jan 2023 00:09:55 +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 1pIeyh-00089A-16 for pgsql-bugs@lists.postgresql.org; Fri, 20 Jan 2023 00:09:55 +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 1pIeye-0000WK-N0 for pgsql-bugs@lists.postgresql.org; Fri, 20 Jan 2023 00:09:54 +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 30K09oW7294750; Thu, 19 Jan 2023 19:09:50 -0500 From: Tom Lane To: Noah Misch cc: David Rowley , justin@tonic.ai, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17753: pg_dump --if-exists bug In-reply-to: <282372.1674166935@sss.pgh.pa.us> References: <17753-9c8773631747ee1c@postgresql.org> <4062761.1674142680@sss.pgh.pa.us> <282372.1674166935@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 19 Jan 2023 17:22:15 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <294748.1674173390.1@sss.pgh.pa.us> Date: Thu, 19 Jan 2023 19:09:50 -0500 Message-ID: <294749.1674173390@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I think we need to do the attached, more or less. Also, although the > given case seems to be new, we'd probably better back-patch, because > I'm not convinced that there aren't other ways to reach this. Ah --- we only need to back-patch to v15, because this business of possibly having a comment in the dropStmt is new in a7a7be1f2. That commit also added the existing exceptions for comments in pg_backup_archiver.c ... but it missed the need to have special cases for dropStmts too. regards, tom lane