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 1jejhA-00038u-73 for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2020 18:25:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jejh8-00039H-1o for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2020 18:25:26 +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 1jejh7-00039A-MX for pgsql-hackers@lists.postgresql.org; Fri, 29 May 2020 18:25:25 +0000 Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jejh0-00034J-Fi for pgsql-hackers@postgresql.org; Fri, 29 May 2020 18:25:24 +0000 Received: by mail-qv1-xf32.google.com with SMTP id dh1so1505695qvb.13 for ; Fri, 29 May 2020 11:25:18 -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=bWWwaqQE8jweNhWXNqeCL1f4YXKqtFCLYUzhUKDVTEw=; b=ZF6y9PwoWYqk8KLleo7xDyZh9dNWG+cmfYhCbpTXSUbAwsQj276THGKl1gMOh5VRnI nZ0p/dIBOGaqcq0h6Q6I1IFDmb3kZ3Nj4i9tT1gMBcNIOvhE+mNucGatQyES7KBYQx/G FI4gS/cxNoL0Bh1KMaeBKi2LG28i7F5YMtRP7LcvsXekm0B40qbXqF+uw+3pZAUpH2mX Irg6QepmrIJEUYZZJdw+R9Nsfy0HT4+oZTx7PRLrt/ydBBLJVQefqckxjJ6bpjNwPPOq DhrAMLGDDpdBWytS925m8toxDUmdUI4secRRR5y9NUzt1LT8gigbPHv9RXEl3R9QmTz5 k/aQ== 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=bWWwaqQE8jweNhWXNqeCL1f4YXKqtFCLYUzhUKDVTEw=; b=r7rllV8CpKR39LV46sVvv+Tv+fcf1t52ttKdOD/lrOzb3849zUjRXWpMDGpoPZvlum eizu5XBUZX90QHXZiW01YXUL8s0AB6YeGIObAiOl5A1IW5Zlul+q0ZarTmukSWSPonpy kvnAz1Rx7WEZaGMpjN9DUQuURhZZbu24SPPx5XZdzW5RYYj0PZQE4HeUfjfjtblfcwg1 JV7o5QFcua02jpqL23ZkZQPUTouJFENDzb+GSxbqzU0p4/vip0P0qLlfI+8/4xxyMTtR m03yvgy77rp+InkGrnKepmeK89eNzo2/sowhQ0dmJQ2lgJwnPS07qR9vfk+12Csg9tKL VVCQ== X-Gm-Message-State: AOAM532yNy/CFmXMjNLAogS9mLYCmTzWq9kM5CFIr3wv1lwgDiyl46BQ zdrTWpJyx6RjgNvLF4scJTcDvg== X-Google-Smtp-Source: ABdhPJxRNzP0G3rm0nS/8u/DaPcmRaAfDnAO+lBS/nNzcAzNQ4/uOEMV/vgdsxPyOmQTV/E8YhN5ew== X-Received: by 2002:ad4:55ea:: with SMTP id bu10mr10083727qvb.163.1590776717459; Fri, 29 May 2020 11:25:17 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id s15sm9119126qtc.95.2020.05.29.11.25.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2020 11:25:16 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 3DBB08000E2; Fri, 29 May 2020 13:25:15 -0500 (CDT) Date: Fri, 29 May 2020 13:25:15 -0500 From: Justin Pryzby To: Pavel Stehule Cc: pgsql-hackers@postgresql.org Subject: Re: proposal: possibility to read dumped table's name from file Message-ID: <20200529182514.GL17850@telsasoft.com> References: 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 Fri, May 29, 2020 at 04:21:00PM +0200, Pavel Stehule wrote: > one my customer has to specify dumped tables name by name. After years and > increasing database size and table numbers he has problem with too short > command line. He need to read the list of tables from file (or from stdin). +1 - we would use this. We put a regex (actually a pg_dump pattern) of tables to skip (timeseries partitions which are older than a few days and which are also dumped once not expected to change, and typically not redumped). We're nowhere near the execve() limit, but it'd be nice if the command was primarily a list of options and not a long regex. Please also support reading from file for --exclude-table=pattern. I'm drawing a parallel between this and rsync --include/--exclude and --filter. We'd be implementing a new --filter, which might have similar syntax to rsync (which I always forget). -- Justin