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.96) (envelope-from ) id 1vImUj-00EAtF-1v for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Nov 2025 11:25:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vImUh-005kZz-10 for pgsql-hackers@arkaria.postgresql.org; Tue, 11 Nov 2025 11:25:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vImUh-005kZq-04 for pgsql-hackers@lists.postgresql.org; Tue, 11 Nov 2025 11:25:03 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vImUf-006XPi-1J for pgsql-hackers@postgresql.org; Tue, 11 Nov 2025 11:25:02 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-7b72bfcbb26so41199b3a.0 for ; Tue, 11 Nov 2025 03:25:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1762860300; x=1763465100; darn=postgresql.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=IgioLlj6A3+AF4J6YDZeSwm9VQNyzeok/BzmE3/vb4M=; b=l9AJ4f70WGy5Gnh9q8IA1PRGX/wzikm276Ztsa5+mgGUqBzNYqrhRqhUE8BAB+PRF7 L1pvwWMVBb2sIQEFuFpng4IIWUALfUDwuKXIWq89uoaqGRw0GW4Bgs9nt1lfY0552x/7 AfsJNLbcY2j3r139p46vi6Ayj4LKHq71EWTQT18IMfA2kAFtVXgIOMsXSZ0Pg4fe8wBb 1xINs9GPcx9y6cM+XmudYUVknIu12Ab1vAssP/nipAHen2quu3mUtzLmNThrrs7QD+BA cPsw2xk80ZlIwrgZP5wsW5saUqqauAN6JsLt2pWNtZ6DEGaCKauJYOevxH0/thy/TvwB MLSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762860300; x=1763465100; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=IgioLlj6A3+AF4J6YDZeSwm9VQNyzeok/BzmE3/vb4M=; b=V7oV01KakxLuklU7hfeLiFJk6GvVv98Wb9Sp15iwEqMSNW+XcmWrwromXJoR9+ar+q k0xpLcxnApUFzBDCQeURz31sNzvg1gviNU8qabr+IcLm1DjeRIzuZ6PfewwM9EX6rIza koDy7NIAV0vfyWLsyzUeioMFfRp1QPbpl01JkU+QWIIsDgYBHQ/927UVIiNu9hBW1rQt nIGirnqzutUke8MHAYfigowPMYgSD71G+/ymao+fHqX6JLT7YmkLXgWCrucPk9YK6ksG PeU0MWBQBbIYID68IcPnTqPmISagS94+tgCw77dWPo8GtwGsExMmianIngz8Kz/objOM ANTw== X-Forwarded-Encrypted: i=1; AJvYcCWmYlO6zA+gBpZzGyJzAc76MdonnS2bqwDRpDtSiWJV8jlnQYRe6xNPaZUBDaK+jjibL2lFKYezz5q81G02@postgresql.org X-Gm-Message-State: AOJu0YyBRW8ODrKl1zSTuUzzQltEThu1NCaHCf+xQkph4JvSLx56qeNx ehdtE8haBrFgiYeJWBz26Qvjwu6BKFWrpGbLim6K+LLtq+pxkCvVLxpk X-Gm-Gg: ASbGncvZYNA6MpS0GPOfPFlT1QG2SZ7MWqfaOA/KRSdzAJ9Xwre3/2CchcjkSLKSEUJ 9nSGZygKxgLHiDcUwIuAfBf98fdFwaNi1EegobTFRaXpXVaxGttxlIsF3XopGmfGswcwvsKa9rK mOOX17Ava7o/fOXcrgCcUzsiKmPpiJ9nruxiLfFFimUirOGBS4WVEl337oW3I/0YnwmOHxj/Irj 8nRFUS1JZRKaeFNMWQFDoN6LbLR2hJ4I5Cmixa1bDdESBTkJqOuzDlhYi2etyZSg/ZYJ2LtUxlR 7XCwnEfpVxDYVHIvfp9cWPV+RfjH2nKMq4+uQphKwm9grQ98upUSw+J7ia6KLHvcjB9imrlp26Y bc7R7BQVUwXSCsxQXIEieYX09Pka1t1Rlq9KK7BL7mrQCt6y22AKRlerLHs1RfTNpGyx6liDovk 4A0tIr1Db58iLDI3xop4pzkELK+qCmC2wz7g== X-Google-Smtp-Source: AGHT+IFF2kW6BsbjnXRlSrmW7Y55A2zgHMFgvda2l/j6i2lYbf0mr69VKnqtrzfHgC07GJZdZXiXbg== X-Received: by 2002:a05:6a21:7747:b0:355:1add:c298 with SMTP id adf61e73a8af0-3551addcbfcmr9305459637.21.1762860300336; Tue, 11 Nov 2025 03:25:00 -0800 (PST) Received: from localhost ([2804:14d:328a:a59c:2c5a:e10f:82c2:e167]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7b0ca1e7b19sm14808873b3a.32.2025.11.11.03.24.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 11 Nov 2025 03:25:00 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 11 Nov 2025 08:24:56 -0300 Message-Id: Cc: "Manni Wood" , "Pg Hackers" Subject: Re: Include extension path on pg_available_extensions From: "Matheus Alcantara" To: "Michael Banck" , "Matheus Alcantara" X-Mailer: aerc 0.21.0 References: <690774ba.170a0220.27c5b9.5e61SMTPIN_ADDED_BROKEN@mx.google.com> <691270f8.a70a0220.2ef5c1.bdb9SMTPIN_ADDED_BROKEN@mx.google.com> In-Reply-To: <691270f8.a70a0220.2ef5c1.bdb9SMTPIN_ADDED_BROKEN@mx.google.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon Nov 10, 2025 at 8:10 PM -03, Michael Banck wrote: >> > I have a small bikeshedding comment around making "location" the 4th c= olumn >> > returned for "select * from pg_available_extensions", as opposed to le= aving >> > "comment" the 4th column returned for "select * from >> > pg_available_extensions". >> > >> > If a bit of software runs "select * from pg_available_extensions" and >> > fetches the contents of the 4th column, that column will return "comme= nt" >> > for current versions of postgres but "location" for patched versions o= f >> > postgres. >> > >> > In many ways, this could be considered a feature and not a bug, becaus= e we >> > should be encouraged to write our SQL like so: >> > >> > select name, default_version, installed_version, comment from >> > pg_available_extensions >> > >> > and not like so: >> > >> > select * from pg_available_extensions >> > >> > I'm curious to know if this is a legitimate consideration or not. >> > >> Good point, I think that it's a legitimate consideration. That being >> said I would get back to prefer to keep the location as the latest >> column to avoid such issues even if SELECT * is not something that users >> should do in practice, but I think that it's worth to avoid break any >> application with such change. > > When the trusted column got added to the pg_availe_extensions view in > 50fc694, it wasn't added to the end, but next to superuser, where it > logically makes sense IMO: > > |@@ -317,7 +317,8 @@ CREATE VIEW pg_available_extensions AS > |=20 > | CREATE VIEW pg_available_extension_versions AS > | SELECT E.name, E.version, (X.extname IS NOT NULL) AS installed, > |- E.superuser, E.relocatable, E.schema, E.requires, E.comment > |+ E.superuser, E.trusted, E.relocatable, > |+ E.schema, E.requires, E.comment > | FROM pg_available_extension_versions() AS E > | LEFT JOIN pg_extension AS X > | ON E.name =3D X.extname AND E.version =3D X.extversion; > > As far as I know, Postgres does not guarantee stable system catalogs > between major versions, so I don't think users should or could rely on > stable column ordering, really. > Thanks for pointing this, I didn't know about this detail. I'm not against swapping the orders of "comment" and "location" columns, I also think that it would look better, I'm just afraid of breaking any compatibility with anything, but it seems that it's not the case. --=20 Matheus Alcantara EDB: http://www.enterprisedb.com