Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iOTRw-0004Ds-NA for pgsql-sql@arkaria.postgresql.org; Sat, 26 Oct 2019 21:18:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iOTRv-0001Bs-He for pgsql-sql@arkaria.postgresql.org; Sat, 26 Oct 2019 21:18:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iOTRv-0001BO-6K; Sat, 26 Oct 2019 21:18:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iOTRs-0002XN-V1; Sat, 26 Oct 2019 21:18:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x9QLI9UD025500; Sat, 26 Oct 2019 17:18:09 -0400 From: Tom Lane To: Andres Freund cc: Alex Williams , "pgsql-sql@postgresql.org" , pgsql-hackers@lists.postgresql.org Subject: Re: pg_dump compatibility level / use create view instead of create table/rule In-reply-to: <20191026205630.cubjcxgs2rhke7xa@alap3.anarazel.de> References: <30565.1570597261@sss.pgh.pa.us> <18dWrRFcmR7qHhsVTvYfGuRT8Tx5LijYQ72SeMWaya_0FiBkS5BFiYTa47R5WVTlADzXAqI85sZgkKPFVdJP2UWsUwJty3KuZ4eZvlVXO-I=@protonmail.com> <17815.1570661198@sss.pgh.pa.us> <-pa2tdKbasT5nWrYgCtvhKtMDyPIboaoG53ZSPb0MfCvzMUaVJDgQddN1ve-XLllFBKmQ8kGJ7InqBcYwq5CJY2DnLI4HVWTHyYx8wwBTtM=@protonmail.com> <1095.1570720814@sss.pgh.pa.us> <20191026205630.cubjcxgs2rhke7xa@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sat, 26 Oct 2019 13:56:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25498.1572124689.1@sss.pgh.pa.us> Date: Sat, 26 Oct 2019 17:18:09 -0400 Message-ID: <25499.1572124689@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-10-10 11:20:14 -0400, Tom Lane wrote: >> The reason we get "REPLICA IDENTITY NOTHING" is that a view's relreplident >> is set to 'n' not 'd', which might not have been a great choice. > Hm, yea. I wonder if we should add a REPLICA_IDENTITY_INVALID or such, > for non relation relkinds? I'm mildly inclined to think that setting it > to REPLICA_IDENTITY_DEFAULT is at least as confusing as > REPLICA_IDENTITY_DEFAULT... Yeah, I'd be for that in HEAD probably. But of course we can't change the 9.x branches like that. >> This is fixed in v10 and up thanks to d8c05aff5. I was hesitant to >> back-patch that at the time, but now that it's survived in the field >> for a couple years, I think a good case could be made for doing so. > +1 Just finishing up the back-patch now. regards, tom lane