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 1pOM4H-0002fT-51 for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Feb 2023 17:11:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pOM4G-0007GD-1l for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Feb 2023 17:11:12 +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 1pOM4F-0007G4-Kf for pgsql-hackers@lists.postgresql.org; Sat, 04 Feb 2023 17:11:11 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pOM49-0002B9-9O for pgsql-hackers@postgresql.org; Sat, 04 Feb 2023 17:11:11 +0000 Received: by mail-il1-x12a.google.com with SMTP id w13so3292461ilv.3 for ; Sat, 04 Feb 2023 09:11:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=0oS+zWCVPe/TG40KYRKISewzlM1Xz8qa5Al6hzQdzqc=; b=k84JmHnhSglpUJKrTiuJ/4wI/HOCYUY31lw+YiqRnuZ5XFKxVk+aoPUbbw4Ho6/FoR Oa4wBl6gebc7eU4YJMOxTrCNr4ai/9bIGQM6Tghg4DEF+UopRwzWEjGNfAh1pQuC6GGN zuM5/fwQcGG8zWTk/4zaFylU4OIMFAYkYQlhZNbx/+SYlcCw/DRpFBe7Ml9jmCu5S8g0 YuOuoqNKeGTOILJYXmDPW8cQL2QUrjCBE5Ob4reMIfecPbG3iDsarD3xEArRN0VKewNy 0ll0tr4r+V7KdgNqPEs5ob3/0JbB/og3lfKr6jER4jQcUxtR3Wwo2Tav+LJaPQpFRuUW AQ/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0oS+zWCVPe/TG40KYRKISewzlM1Xz8qa5Al6hzQdzqc=; b=LEtnyMzTEKLiVlmxTjnjSS/rXoQ69l9r+jK0j7NeOPS9w4yA44ENwli84LuT/yQlhV bt8fO1qwiEKbFt9At8dJHsJWooqmg2cfaH31c27aVSn70C1fkxf3Jz1S1YGf4epKC84p aPtPg75u2JHaMsWLoZjGz1IQopwFXpVoWD6jpQeEJQOKlcWIxOLlwnS2XzjrHh9JCzt+ BbPVTMBlGuVbxjL3rmkeeGhrR30Zguw/P3McyGg1fX123c/BkPNp+aOtUqBSvLc2pGoO EQWCNwCYOGb0+S0k17xC/NITcEVTttdt0jiWS/BnqJwBmEU4IT+8l1h1JAif2daaLL+/ fS2w== X-Gm-Message-State: AO0yUKXskTmB3vo0yotw15d0x3jcH/K6ELNNt3vF+JG9hRLi8CacjHS8 swVjlt7Th3p4snaD+2FT+2jx/w== X-Google-Smtp-Source: AK7set/Lb7+tQjo0TikV8GRwvO5FYkdBtcr56YTngdGfOxhRsP5sqkP38REa9WVIoXJ8uNAk0Wx2hA== X-Received: by 2002:a05:6e02:1947:b0:313:846a:93ac with SMTP id x7-20020a056e02194700b00313846a93acmr9330559ilu.9.1675530663202; Sat, 04 Feb 2023 09:11:03 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id p32-20020a056638192000b003748d3552e1sm1873995jal.154.2023.02.04.09.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Feb 2023 09:11:02 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 92306800C82; Sat, 4 Feb 2023 11:11:01 -0600 (CST) Date: Sat, 4 Feb 2023 11:11:01 -0600 From: Justin Pryzby To: Tom Lane Cc: Andres Freund , Noah Misch , Andrew Dunstan , Jelte Fennema , Peter Geoghegan , Bruce Momjian , Magnus Hagander , Alvaro Herrera , Stephen Frost , Jesse Zhang , pgsql-hackers@postgresql.org Subject: Re: run pgindent on a regular basis / scripted manner Message-ID: <20230204171101.GF1653@telsasoft.com> References: <20230122094957.x542ojaqgi4lalq4@awork3.anarazel.de> <20230122223806.3sgew6qswhsczae7@awork3.anarazel.de> <1489276.1674427657@sss.pgh.pa.us> <1708030.1675446770@sss.pgh.pa.us> <20230204041848.GC1896331@rfd.leadboat.com> <20230204113453.vmtnayjvhyg5qqqy@alap3.anarazel.de> <1923921.1675526879@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1923921.1675526879@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Feb 04, 2023 at 11:07:59AM -0500, Tom Lane wrote: > (I haven't forgotten that I'm on the hook to import pg_bsd_indent > into our tree. Will get to that soon.) +1 for that - it's no surprise that you have trouble convincing people to follow the current process: 1) requires using a hacked copy of BSD indent; 2) which is stored outside the main repo; 3) is run via a perl script that itself mungles the source code (because the only indent tool that can support the project's style doesn't actually support what's needed); 4) and wants to retrieve a remote copy of typedefs.list (?). The only thing that makes this scheme even remotely viable is that apt.postgresql.org includes a package for pg-bsd-indent. I've used it only a handful of times by running: pg_bsd_indent -bad -bap -bbb -bc -bl -cli1 -cp33 -cdb -nce -d0 -di12 -nfc1 -i4 -l79 -lp -lpl -nip -npro -sac -tpg -ts4 -U .../typedefs.list The perl wrapper is still a step too far for me (maybe it'd be tolerable if available as a build target). Would you want to make those the default options of the in-tree indent ? Or provide a shortcut like --postgresql ? -- Justin