Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQ8Zu-00Gl6q-4J for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jan 2024 16:15:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rQ8Zt-00EIHX-6N for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jan 2024 16:15:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rQ8Zs-00EIHE-Ry for pgsql-hackers@lists.postgresql.org; Wed, 17 Jan 2024 16:15:44 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rQ8Zq-002JmG-8f for pgsql-hackers@postgresql.org; Wed, 17 Jan 2024 16:15:44 +0000 Received: by mail-ot1-x32f.google.com with SMTP id 46e09a7af769-6ddf26eba3cso4795152a34.0 for ; Wed, 17 Jan 2024 08:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neon.tech; s=google; t=1705508140; x=1706112940; darn=postgresql.org; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UOuvfM5DXd7uAaOiEm7cE1kRIOIY5D39N/V/i0YtdmA=; b=k1AuI5Pm7Y+REbNxx9S8iiVJe22hkllrwATHt35En7uOg07mC+PweGdC6JmmPwkink ldlUgysjCUt/d0s1c4+WLQjm+fsgHYDix/gatT6DEr9IJraxueahtCAeurr/MiNMOnQD wHD2B/cb7EpRYHLICncy+UHxkI7HiXk4cetJQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705508140; x=1706112940; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=UOuvfM5DXd7uAaOiEm7cE1kRIOIY5D39N/V/i0YtdmA=; b=ul0vubLYqAP0ujgEP2ieY+qft35+C9w/nOgpR88ZdfUd4S/vlByMthAmNSsn6rXvfz Fusae/EE3xZ6Tm4iAv3V5rdH8vYHZ7eyoQO1meRF6UbsdPmpIO53zK4F31FsBhZD+gzs ANV4uKmvYz+2h9FYdsNtA/r5ltByJraBTi50fP8iHdp7av4Z9OTD4e3JwkzBSIBVKODb 7GW70SPMK1LcOYxVXCBB6tzmYqvezuiR5JSlE37VcGSWaGrhR2DctcFY1Nh7FaX7M292 /H/ylCax0CRw3jXr5kwob+6gY8UVm6+LKJl5Ij2EN7AxG2KkG5hj4lrcSyqPGyQS2WWP iq/A== X-Gm-Message-State: AOJu0YwPDwoOw5K8e1GSp5FQzO1ZkI68YMBG5Ex/GSFPL5N2KLvuTKmZ KEPeRi1/akrgjrd/HgkSAWgQKUxniUY7nhFgVbJaCJM3pvk= X-Google-Smtp-Source: AGHT+IHg+8es2Yp/Cln5LPSG+4oYuTfmIW9H9Q0r9eDb/d2SDlbGYrXGNb5D+ScRFQBWGZzsuhLq1Q== X-Received: by 2002:a05:6830:4b1:b0:6dd:f078:7c51 with SMTP id l17-20020a05683004b100b006ddf0787c51mr8637050otd.37.1705508140150; Wed, 17 Jan 2024 08:15:40 -0800 (PST) Received: from localhost ([2607:fb90:e683:8cf6:3996:e070:71ee:42fb]) by smtp.gmail.com with ESMTPSA id f11-20020a056830264b00b006df296eb0b4sm2253816otu.40.2024.01.17.08.15.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jan 2024 08:15:39 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Wed, 17 Jan 2024 10:15:38 -0600 Message-Id: Cc: "pgsql-hackers" , "Jelte Fennema-Nio" Subject: Re: Add pgindent test to check if codebase is correctly formatted To: "Alvaro Herrera" From: "Tristan Partin" X-Mailer: aerc 0.16.0-127-gec0f4a50cf77 References: <202401170950.fdfpjlne22yv@alvherre.pgsql> In-Reply-To: <202401170950.fdfpjlne22yv@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed Jan 17, 2024 at 3:50 AM CST, Alvaro Herrera wrote: > Hmm, should this also install typedefs.list and pgindent.man? > What about the tooling to reformat Perl code? Good point about pgindent.man. It would definitely be good to install=20 alongside pgindent and pg_bsd_indent. I don't know if we need to install the typedefs.list file. I think it=20 would just be good enough to also install the find_typedefs script. But=20 it needs some fixing up first[0]. Extension authors can then just=20 generate their own typedefs.list that will include the typedefs of the=20 extension and the typedefs of the postgres types they use. At least,=20 that is what we have found works at Neon. I cannot vouch for extension authors writing Perl but I think it could=20 make sense to install the src/test/perl tree, so extension authors could=20 more easily write tests for their extensions in Perl. But we could=20 install the perltidy file and whatever else too. I keep my Perl writing=20 to a minimum, so I am not the best person to vouch for these usecases. [0]: https://www.postgresql.org/message-id/aaa59ef5-dce8-7369-5cae-48772766= 4127%40dunslane.net --=20 Tristan Partin Neon (https://neon.tech)