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 1m3QP5-0008Om-Ck for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jul 2021 21:57:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m3QP3-0006kM-F0 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jul 2021 21:57:21 +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 1m3QP3-0006kD-3H for pgsql-hackers@lists.postgresql.org; Tue, 13 Jul 2021 21:57:21 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m3QOy-0002iD-Iy for pgsql-hackers@postgresql.org; Tue, 13 Jul 2021 21:57:20 +0000 Received: by mail-ej1-x635.google.com with SMTP id hr1so44231271ejc.1 for ; Tue, 13 Jul 2021 14:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Y9wSsYfv4UayLD/cEcNvbVW0MKXGKBMFaYdgt4qSXGg=; b=g2H4VO+CX4Uu9n+ZckAfrIb27QXMRWxqyyHCuJaLLssCS5MGbhNf/oi9hOX5uj6wCJ U8r8trY+SGkm8YrCTibEY4vPG8Rapi3QOoa1RK5kV/9SdszB/lan/GU31DvwkJ8Zjg0b 6uwTxkHBPwrLLp+Z+b4+2tSCLe+iyKvJ4LMdVX8w+gaH1r/wIA3vGTYI7EflGRgVKlNM yYXstZQs9EJW9bD4dgPfsjKeS0GI30b6QYflqL7amV5xz8hDLGi4rPF9sMz79v9VCGy8 HFk0flJl/UqYTUDLiyfDYUjqoxkYOezFchpUdpt9erJGpVNq4j4VzUVNyrvmIy/GF/EV 6Thw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Y9wSsYfv4UayLD/cEcNvbVW0MKXGKBMFaYdgt4qSXGg=; b=bGZm1r4zs7Yjo8aGXaYVRIQlB2Fn/wvJSKECfBWaO5nxdeqM1Wfs70Kg8G9N4jBAjj YwjPOt4klgUqLSo2AlJEAWalGe7lX/T7SLZJpgUDoyMuUFRYJL49tP1zPfUx2x+sACMX k3DVoRs/RZ1O6kxgyf5k8VDJxsULzQjVyw6vLC5fJBGB4ZdrDxJnVeWF9qBBSmLY2WQM mb0XG4SQ34rPFU5FO7YAcsjlHus2FVXSAKK11JTSoij6ky/Y1tGKDaE4ytCj4YqikDzY KX004DQE+Hp9FcV9tLDkjbFFnVo8svY715cYW+xl5aJaQJYvkeDTQbjOAl19pChcfka0 txTw== X-Gm-Message-State: AOAM532s5eia9GXUPJDsaeL9EOG4SWX1lr6XDUAh4cTDrINh/p+CSelf PapX6zxBi88XzR/x/D5nXtJrSvEBr7R0RdNrw8GKQNIdbDxdouq9Q99Mnp2QEjlavsAwowkmYEs N/jA8hOEkjmdTFcyKDOOgMrGLrq+Kc2dRbwHnhaUtDCSPzUB4MMYsnbgegC3Vd8dQRgC0LvBULm M89LQ6A33HbY6q2ixsQ9ANNEDwJepRxJkM0urd X-Google-Smtp-Source: ABdhPJwTkl0shPODb38DqQWxEX3+p2BQy7NH3uVbXcmX8l9EGgeEYVuUMhSVtC9pa/mkY3aQqkBWow== X-Received: by 2002:a17:906:846e:: with SMTP id hx14mr71508ejc.224.1626213434214; Tue, 13 Jul 2021 14:57:14 -0700 (PDT) Received: from [10.137.0.18] (ip-86-49-254-183.net.upcbroadband.cz. [86.49.254.183]) by smtp.gmail.com with ESMTPSA id o23sm34412ejc.124.2021.07.13.14.57.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jul 2021 14:57:13 -0700 (PDT) Subject: Re: proposal: possibility to read dumped table's name from file To: Stephen Frost , Daniel Gustafsson Cc: Alvaro Herrera , Dean Rasheed , Justin Pryzby , Pavel Stehule , PostgreSQL Hackers , Surafel Temesgen , Tom Lane , vignesh C References: <202107122259.n6o5uwb5erza@alvherre.pgsql> <3183720.1626131795@sss.pgh.pa.us> <20210713134013.GF20766@tamriel.snowman.net> <2caf1efb-359d-7720-9d6e-88efdaaf55dd@enterprisedb.com> <0CDB1A7D-F3FB-4689-B452-9E95A8DC6B8C@yesql.se> From: Tomas Vondra Message-ID: Date: Tue, 13 Jul 2021 23:57:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-CLOUD-SEC-AV-Info: enterprisedb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/13/21 10:55 PM, Stephen Frost wrote: > Greetings, > > On Tue, Jul 13, 2021 at 16:44 Daniel Gustafsson > wrote: > > > On 13 Jul 2021, at 18:14, Tomas Vondra > > wrote: > > > FWIW I don't understand why would they need to write parsers. > > It's quite common to write unit tests for VM recipes/playbooks wheen > using > tools like Chef etc, parsing and checking the installed/generated > files is part > of that. This would be one very real use case for writing a parser. > > > Consider pgAdmin and the many other tools which essentially embed > pg_dump and pg_restore.  There’s no shortage of use cases for a variety > of tools to be able to understand, read, parse, generate, rewrite, and > probably do more, with such a pg_dump/restore config file. > Sure. Which is why I'm advocating for the simplest possible format (and not expanding the scope of this patch beyond filtering), because that makes this kind of processing simpler. > > I think the case when the filter file needs to be modified is > rather rare - it certainly is not what the original use case Pavel > tried to address needs. (I know that customer and the filter would > be generated and used for a single dump.) > > I'm not convinced that basing design decisions on a single customer > reference > who only want to use the code once is helpful. > > > Agreed. > I wasn't really basing this on a single customer - that was merely an example, of course. FWIW Justin Pryzby already stated having to use some more complex format would likely mean they would not use the feature, so that's another data point to consider. FWIW I believe it's clear what my opinions on this topic are. Repeating that seems a bit pointless, so I'll step aside and let this thread move forward in whatever direction. regards -- Tomas Vondra EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company