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.92) (envelope-from ) id 1jCqCx-00039Z-Oo for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 19:42:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCqCv-0001ut-Ab for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2020 19:42:57 +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 1jCqCu-0001te-UY for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2020 19:42:57 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jCqCs-00042G-If for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2020 19:42:55 +0000 Received: by mail-qt1-x841.google.com with SMTP id h16so8597448qtr.11 for ; Fri, 13 Mar 2020 12:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=7Dt9uO2sx2y72Ziz7rZXBdcOjj8cwQ2M460B+TqqMrw=; b=PPCg5zXGKihB9ot4QGXpibrg5sZjqgsB2+t5E1F1zjTa33mgWK4ArCWzahUC+kNifW i5GhefY51bE9eyiuQnyuyKw0iEMaA1XPq5EEPStRK4DhmELLfzUl3yWKq3lfUliOgtCE Pr+18hgwgFacL/4skPgo+MyexP4wdJbloaCxxNyoGBrgbCEgb1CnyUhz6MUA/6SStr65 6vpvYrXuoce7hgPyxKJt1aVqglLSGNHGX0MDAmsYF7TBwRyi4wu1XAKOMARA6b4qQcR9 0psCYRMVq0W/rlHVLTy6QSTOccKf2k2izAZWJufHgbgSTWv4qCBGryVlte624ecmmS/1 Cqvw== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=7Dt9uO2sx2y72Ziz7rZXBdcOjj8cwQ2M460B+TqqMrw=; b=XUYFcdpajU3fW7PpHUZqIrbz/4jsgbyZK+euBw7dotpnu68f2tWJ0R7xy7/VwPXl7/ 7zV1LPtjMHbY1xVE+5oZ737LZnpE+/BtSFi7hvPzb027RzuRbhgz66vGBoqPlcXDTSRS unK05aRmZjCferJFo7YLEVkFxastG7l1UXuX7TIyrVlmdTXTnSPmda9eYxZQLtoBusts kdhbL/BNrULit6cC85wvDUKSPIAFzQXhYzYegqY+ieoNknoIr0aKIi/hHtL41lIBNPy+ NWPX4hPK/hYSIjDf5WAvnY2w4Q8VUuBaTbx9D1gzuOXPAiVc62GIkPGJzhqGAu0Vp6qE BuYQ== X-Gm-Message-State: ANhLgQ1Cn6QoLICscpRs6uKn1TH2YDJSiE+sLgpuOdegR5tuJKFDkfzT EkoRDR3g3kfZngf0wUZ38Y1lGA== X-Google-Smtp-Source: ADFU+vspTccHRAx5rxD2v1+aJISR2L2lOpZ+xQxIDQybJgBUglooFkDQnho5l+mg4QvLq6bggmbMdg== X-Received: by 2002:aed:2605:: with SMTP id z5mr14402011qtc.240.1584128573644; Fri, 13 Mar 2020 12:42:53 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.31.1]) by smtp.gmail.com with ESMTPSA id r15sm12754934qtr.40.2020.03.13.12.42.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 12:42:53 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C78FF300898; Fri, 13 Mar 2020 16:42:50 -0300 (-03) Date: Fri, 13 Mar 2020 16:42:50 -0300 From: Alvaro Herrera To: Tom Lane Cc: James Coleman , Tomas Vondra , Michael Paquier , Rafia Sabih , Peter Geoghegan , Simon Riggs , Shaun Thomas , Dmitry Dolgov <9erthalion6@gmail.com>, Alexander Korotkov , PostgreSQL Developers Subject: Re: [PATCH] Incremental sort (was: PoC: Partial sort) Message-ID: <20200313194250.GA13008@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <32055.1584127672@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Mar-13, Tom Lane wrote: > Alvaro Herrera writes: > > ... You can specify a filelist to pgindent, also. What I do is super > > low-tech: do a "git diff origin/master", copy the filelist, and then > > ^V^E to paste that list into a command line to run pgindent (editing to > > remove the change histogram and irrelevant files). I should automate > > this ... > > Yeah. I tend to keep copies of the files I'm specifically hacking on > in a separate work directory, and then I re-indent just that directory. > But that's far from ideal as well. I wonder if it'd be worth teaching > pgindent to have some option to indent only files that are already > modified according to git? A quick look at git-ls-files manpage suggests that this might work: src/tools/pgindent/pgindent $(git ls-files --modified -- *.[ch]) If it's that easy, maybe it's not worth messing with pgindent ... Also, I wonder if it would be better to modify our policies so that we update typedefs.list more frequently. Some people include additions with their commits, but it's far from SOP. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services