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 1juzVA-0003oL-IU for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jul 2020 14:32:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1juzV9-0005d1-8j for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Jul 2020 14:32:15 +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 1juzV8-0005cp-UC for pgsql-hackers@lists.postgresql.org; Mon, 13 Jul 2020 14:32:15 +0000 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1juzV2-0002hr-1z for pgsql-hackers@postgresql.org; Mon, 13 Jul 2020 14:32:13 +0000 Received: by mail-il1-x132.google.com with SMTP id t27so11302302ill.9 for ; Mon, 13 Jul 2020 07:32:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+SsetXzfnnTpIyahXxP+JZTI+dI8cn8fLcM0G4EQT+M=; b=NaU2x+WMeeuO8AdzPA26gerNDFRp/2u31h3GVsUKGRQ7LsfBw42rtYGmvj+prkN2Q9 IYdVqdXYXDgqzfBVyw46DSYylbzlLjsCSQriQbQehlgOBK1tN0Qc7nEHazA3pWz4v2Yr 8Dmf+K92n5ykW/XY6uzk8cdcBibU+hmrSZ0o28bCxlDuTcI6+DfN1EyRSh1Gt9c0yZ8x WaVSO9o0TDAtWI7KGOpXNBBxfPqg8EWJ/BrITZGbHVkQxeFLn8fSNAs6im0QzCtLRvWi SwC8QRaLUsftMWbhGh2bxNdjvjlj7bAzJsF5PkW0n2NLylp1yuy766IZqEpedCXc02DZ Gv6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+SsetXzfnnTpIyahXxP+JZTI+dI8cn8fLcM0G4EQT+M=; b=NiPOd7c6gwFCRaEgCduhY5be4h5+c1TUhbdvGzIR0OYvPj0w8zw2vLVyLxD15io5FK RLWhmN2HbDfl2YkBAeCsUD0+q1n7MrdKbAD3KQBumEq4a+98buiCJ1Tslr6JcAlP3OhY 5A8HJP3zTpYMzwC2V4Nctd9TD2vaTQOL7ueZTgw9szdpu8Libmk0i5CEQAcoOCFLtFpj j2pCNih6s4oLPeAYwC6LMEUSfJgrtVq613fYvpS+XYt6fGxmMjU+Ej5qeN0wwpfXG8oM gUQ8S2uJBkf7R2N0p+czaj6k0yVtKY3b0xWKEnBsO9+bC9oZsp/IF4niSrsS5lJaeN3P RS/g== X-Gm-Message-State: AOAM533UtzWdCNSD9hu3ULs3PNPXa/WMJEevEgDGo/c/jwLcgAHBWbdV lbMUwfvmgNp1pW4ewQFiSv7FIA== X-Google-Smtp-Source: ABdhPJwE9k5/ONUGtIWdw5paMYlUXTcjvSyGzBUo8swTq3Ad5o9nW54ZVyTPoYfp5HopAiezgcMXZw== X-Received: by 2002:a92:9f96:: with SMTP id z22mr63558641ilk.266.1594650726810; Mon, 13 Jul 2020 07:32:06 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id s190sm8774105ilc.28.2020.07.13.07.32.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2020 07:32:05 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 70B66802E29; Mon, 13 Jul 2020 09:32:04 -0500 (CDT) Date: Mon, 13 Jul 2020 09:32:04 -0500 From: Justin Pryzby To: Daniel Gustafsson Cc: Pavel Stehule , vignesh C , pgsql-hackers@postgresql.org Subject: Re: proposal: possibility to read dumped table's name from file Message-ID: <20200713143204.GE23581@telsasoft.com> References: <20200609223042.GF26811@telsasoft.com> <20200701212452.GF4107@telsasoft.com> <20200705203119.GT4107@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Jul 13, 2020 at 12:04:09PM +0200, Daniel Gustafsson wrote: > Sorry for jumping in late, but thinking about this extension to pg_dump: > doesn't it make more sense to use an existing file format like JSON for this, > given that virtually all devops/cd/etc tooling know about JSON already? > > Considering its application and the problem space, I'd expect users to generate > this file rather than handcraft it with 10 rows of content, and standard file > formats help there. I mentioned having tested this patch as we would use it. But it's likely I *wouldn't* use it if the format was something which required added complexity to pipe in from an existing shell script. > At the very least it seems limiting to not include a file format version > identifier since we'd otherwise risk running into backwards compat issues > should we want to expand on this in the future. Maybe .. I'm not sure. The patch would of course be extended to handle additional include/exclude options. Is there any other future behavior we might reasonably anticipate ? If at some point we wanted to support another file format, maybe it would look like: --format=v2:filters.txt (or maybe the old one would be v1:filters.txt) -- Justin