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 1pJGI0-0002T3-Bp for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Jan 2023 16:00:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pJGHz-0007qz-9S for pgsql-bugs@arkaria.postgresql.org; Sat, 21 Jan 2023 16:00:19 +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 1pJGHz-0007qq-1O for pgsql-bugs@lists.postgresql.org; Sat, 21 Jan 2023 16:00:19 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pJGHw-0004Uv-RY for pgsql-bugs@lists.postgresql.org; Sat, 21 Jan 2023 16:00:18 +0000 Received: by mail-oo1-xc31.google.com with SMTP id r1-20020a4a3701000000b004f2b4f8200eso1486628oor.7 for ; Sat, 21 Jan 2023 08:00:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=XZDQcYq+R7FZFG4w0bzWDjfVCrIfOFVIaJjAK/TIU8M=; b=RPTD/q+SGr+RGDNKnz3i8oWXBtgZYC9DnkHDceYf9uqnsXDF2ao6DFl6dcLZYw9AZr xpWypoIbRpovFbCWd03vLoToUoXIMA3v3Hnl461/CQDtw7qTSO9YownvxbVenzDT5p2C za+JfXZRDV2wVo+Cs0NaWGk66qVzL06AbGd2s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XZDQcYq+R7FZFG4w0bzWDjfVCrIfOFVIaJjAK/TIU8M=; b=BvKpxqYfU+DEWUm5UdgHLWkS++RKQoVlBa0N6M+zDoHAlbzdutzNs62SC9zFjaluWm qnDTEP7PsKfDPXWbrJMj0uGv7Kb/QlGugJTx+miwYihffnYk0bTjRluF2vo35VCtz6wZ yV7MWvmGKoKSaCDyVeP0MNLWkzH/Po+T++M4nrI5xnWCXThoEMyDywSsSknmj3Z3OqNY zoIIt8JeVnSsZTDy481UgIQLixofV/3AGJ6ujPqzY5eqMgOlB7H51yRB+wwEHPxYywa6 g8ffZPgsPjhrsj+oXJvtsezl/q6sZibYC/jusTLCfQRw6HoTmhr22sa+6c2vEIKkLEhV pDew== X-Gm-Message-State: AFqh2konrXScfC6K7u0ZHEBi2lvYsqLIArEaCldzepVJ5Ov1tRz673Bs pmA3k11EqHwra3JBM3LYNfcD2g== X-Google-Smtp-Source: AMrXdXv9w9LuA86w3ksbLQxWnVlJBUQ1SXJefWe1loAJWizk4JpqgiOGakJjWWH+xWwZ7R5VaqEWYQ== X-Received: by 2002:a4a:e4c6:0:b0:4f2:b25b:574 with SMTP id w6-20020a4ae4c6000000b004f2b25b0574mr7400984oov.2.1674316815219; Sat, 21 Jan 2023 08:00:15 -0800 (PST) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id f42-20020a4a892d000000b004a3d98b2ccdsm20923048ooi.42.2023.01.21.08.00.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jan 2023 08:00:14 -0800 (PST) Date: Sat, 21 Jan 2023 08:00:12 -0800 From: Noah Misch To: Tom Lane Cc: David Rowley , justin@tonic.ai, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17753: pg_dump --if-exists bug Message-ID: <20230121160012.GC1356297@rfd.leadboat.com> References: <17753-9c8773631747ee1c@postgresql.org> <4062761.1674142680@sss.pgh.pa.us> <282372.1674166935@sss.pgh.pa.us> <294749.1674173390@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <294749.1674173390@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jan 19, 2023 at 07:09:50PM -0500, Tom Lane wrote: > 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. Your commit 74739d1 looks good. Thanks.