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 1w9iJ9-001fwW-1e for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 11:39:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9iJ7-0084gz-2X for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 11:39:54 +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.96) (envelope-from ) id 1w9iJ7-0084gq-17 for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 11:39:53 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9iJ2-00000000tK4-3Pa7 for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 11:39:52 +0000 Received: by mail-qk1-x741.google.com with SMTP id af79cd13be357-8cfd122d78fso625477985a.3 for ; Mon, 06 Apr 2026 04:39:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20251104.gappssmtp.com; s=20251104; t=1775475586; x=1776080386; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=v/K8TiZ6GJG8dIo/w+BW/W6t/hd1xIthpKuLGwDhzms=; b=R3tLRgILDj5V4DH5S8NsMv30wx9aDoVG5iGvk7iBhPXLF43Lp9bDCMRSPSxyjQ0p4k 8iroynoNiTO8D6ZzWkXmaWN+RROmWBez0Z+nP0ARmHXovWhmCYT4oLhf8MQ8wlcHO8+8 eypATUeAi9cI9VRC1k6DYfHi2c3tgnHd9K2nevM5s6pdabSGsxsQvmf10lYSCttNI52S 3ETRQ3wkSqxoLIRge60aGl5r/5v2oV5zaWjdoZEQ8SEHXBHr4jbRUXFrYHDTOkg8vCw2 QuQe5ZVuwZ+2WYzhE0GgYF7+Yt8bNlf6rjDB0Km2ewWVlYtPaA0jYN9mkaMn2H3BtCqP jTCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775475586; x=1776080386; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v/K8TiZ6GJG8dIo/w+BW/W6t/hd1xIthpKuLGwDhzms=; b=geMoip7q2VkXfbh82PrSfQLn+IAocXao7rCTfhpCC+oZKITm0zlZ//06n0MJZ9Ui9e TRbciOexMKYvfvjpmDzYWpLB8DG71qxQvT1Wb9beDUKWQn1Ujito+mcOl/pcMS2Y+o4X D5ETkCLjZauFN0yMYKhQR+11mO/FqPkSHCt1WzpZfCaQtwz0T3Ym8mjnf/3LrpUlB1fF TybXwA3KlZVpyT020icCw8RqZs7QECMJU7UHifHql10mXnQ3J6cfYnPUtFJC9tSUcv03 I7RgisEhiy0zHs+llbc5/a/6QzHNJiyW9gUBiHfZvfRoHziiVWQQIuTVzL4Tt3Rco1fQ YJLg== X-Forwarded-Encrypted: i=1; AJvYcCWQVCHqRIvl1ppVEE8hXbRwS0lVRHSpQryK8+wER8NSGDcRx9o5pTTR30C5iKszxTU2G1IBK7XQHcDIIzJI@lists.postgresql.org X-Gm-Message-State: AOJu0YwWk+aA6FhTdgWOdW6aCacjHvN7aECqG8lrrIKrfzT4ewYg+kxW T4kafr7jiWLrqYunxJtyjN/QnCD7+ySTVPCf+vSzJAjFrVEM8ddku3NvQWFXlLVW+rc= X-Gm-Gg: AeBDies9oQvMH50cVV/ctYQgSRHlIV6pjsCGB6UkKzLN564rujUuK/KAEoZW+sXCqbZ fb25SAbkld5eS0mUoqV5/qwBuR24XCFBHMNATALD4pYZ20tuU2ZKuZtoEkmlaMv6AszPMvOVJOc DpRWsQ93KFcu3BtEgyZQaxJg/Sof5SPvv9M0/MWZ4cV4qsfqX48FZilMNucS5tSiEgQB+7+59VA eGfnitSXT2+0tJLPNBd3X/PEA6jTe3jZ6B9eB0Zr+oo1TFnnhAP3hYGhk6vrjOI+/iWsLyDxb+u naIuuBvajIqTmx5OHZttjHNgKwe2RnExZhMBsUSd1CybwR8f3y26fKNtXY2ym12yactfuBvFthr TEGkSG7kJW78h0EriBUegfJDSzsCAv7yO0O/ynu4+La0e3gtrXxUXhnMksOj1/qdUunhJh2Uipq FsVqbRPwfXG0m2nRSkmlzvI3SlcMtQeA== X-Received: by 2002:a05:620a:408c:b0:8cf:d565:fca9 with SMTP id af79cd13be357-8d41b8df860mr1725233885a.9.1775475586398; Mon, 06 Apr 2026 04:39:46 -0700 (PDT) Received: from ?IPV6:2605:a601:a6b0:500::1cb? ([2605:a601:a6b0:500::1cb]) by smtp.googlemail.com with ESMTPSA id af79cd13be357-8d2a8740491sm1033430085a.38.2026.04.06.04.39.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Apr 2026 04:39:45 -0700 (PDT) Message-ID: <5c67dc79-909a-4e17-8606-6686667da6c6@dunslane.net> Date: Mon, 6 Apr 2026 07:39:44 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pg_get__*_ddl consolidation To: Andres Freund Cc: "David G. Johnston" , Japin Li , Zsolt Parragi , Euler Taveira , =?UTF-8?Q?=C3=81lvaro_Herrera?= , PostgreSQL Hackers References: <202603201311.yhtqmvektawm@alvherre.pgsql> <8ec9b67d-939e-4b22-8d56-a5129f92d32d@app.fastmail.com> <555cdee4-c024-4872-9d96-82ef4216239c@dunslane.net> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNJEFuZHJldyBEdW5zdGFuIDxhbmRyZXdAZHVuc2xhbmUubmV0PsLAlwQTAQgAQQIbAwIX gAIZAQULCQgHAwUVCgkICwUWAgMBAAIeBRYhBOQ+WEYd/Hy/RGkVpZn6f8tZ/DuBBQJoGNGd BQkdEO8nAAoJEJn6f8tZ/DuBq74H/jkTR4Zi3stbw+xC7v2u3QozssK7MYPL2AsVfh7OealS h182fiWXpfvmmAB7WUHbhk9GC2RAOnHI/2d2jgKaMLAHsGYOT0YopTVIwRY43fCw/mK67yxc wmDcX+zyKfLaivNbf5A7QPLNwda98bEAMSJ8Sn652Uc6cA8t3uKGsVzbRBQOoYzjgvBCfSrE 9ql3PDNg0l4BfAqabd2f70ZUm9VAMEPrgv/v2xI7M2XiL4g5BVmqLCOwxLM8RMCotCuoweUr VO43DeBCIDwLxotMJKvGWDjBzQYlU1NPUAtNcz/gN9ITUe1VUGjyvGj4u1lxBOcQQUw7l1+T 5moZ4iZxXzvOwE0ETspYWQEIANGc4zQULOxhbqO2dyD51YhqCNRmm9oKWaqf+wmW4tpDe/VV cxAnNizd4LWCHfzpb5cHAtGkOPePMfzWVf6nvdF7d3eglbtf59+zG7O7llV0xSSoFiieQBsr GvqDInXYX/4mRRXMtyhM353/tixC9RWLs1oofyYmCPPXXY7h9R7en3B8BoVrRFcdzlIY/NFN hFGW/9dkEiGjgna2Rk6e15kln4ZvFBWUg23p93w/pqXcxY6+k/8TEk+C4R+M6w7o2PLGOjdZ +kPiUcw5H85zf/yZJwQXzisXaNduwWB6Vads9YC9dj6kPR1c4VGRqAaYL++LAEOqrlvm2Tvq QqZRtnEAEQEAAcLAfAQYAQgAJgIbDBYhBOQ+WEYd/Hy/RGkVpZn6f8tZ/DuBBQJoGNI2BQkd EODdAAoJEJn6f8tZ/DuBfw0IAKTsfD40teP/pp+bsLLMSxPXUYrrprTj7WFB5v61p6dkpSr/ qXmMlyahdxQFaPmfVgVirB1Vk/kHiWNnnGjfUV9nB2Zg9LI0Xb9/ts3LsUiRWXzG3tkMY6XL vsVOxW4XFRND9l2q+WW93aZ1DZl+fqWfYgMvsusFRhmGFOKTRfKPta2Pkv+AhA24N4+PrR5p bU4k2MO8PAGiK8eaYKGFG1bHKuAvoDoF7WXJ3FHxuWqLnKEt4dfOLm5pAe3zq1Lt6q8azT9i QWGpSAK5vQUWQHBHpiDjdPeqKZ6HiAXIIKfSmb+jrvXBqoP+D6/K7rUjG2aXiRtTIAXms9sm VRu7cmw= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-04-05 Su 4:03 PM, Andres Freund wrote: > Hi, > > On 2026-04-05 11:40:33 -0400, Andres Freund wrote: >> On 2026-04-05 11:06:09 -0400, Andrew Dunstan wrote: >>> Pushed. I have moved the remaining get_*_ddl items to PG20-1 >> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=longfin&dt=2026-04-05%2015%3A04%3A04 >> >> diff -U3 /Users/buildfarm/bf-data/HEAD/pgsql.build/src/test/regress/expected/database_ddl.out /Users/buildfarm/bf-data/HEAD/pgsql.build/src/test/regress/results/database_ddl.out >> --- /Users/buildfarm/bf-data/HEAD/pgsql.build/src/test/regress/expected/database_ddl.out 2026-04-05 11:04:08 >> +++ /Users/buildfarm/bf-data/HEAD/pgsql.build/src/test/regress/results/database_ddl.out 2026-04-05 11:05:57 >> @@ -22,6 +22,7 @@ >> CREATE DATABASE regress_database_ddl >> ENCODING utf8 LC_COLLATE "C" LC_CTYPE "C" TEMPLATE template0 >> OWNER regress_datdba; >> +WARNING: databases created by regression test cases should have names including "regression" >> ALTER DATABASE regress_database_ddl CONNECTION_LIMIT 123; >> ALTER DATABASE regress_database_ddl SET random_page_cost = 2.0; >> ALTER ROLE regress_datdba IN DATABASE regress_database_ddl SET random_page_cost = 1.1; > Pushed a fixup for this and the pgindent failure, as it doesn't seem like a > great time to have CI/BF fail. Thanks for that. I'm not sure how my test regime managed to miss either. I will work on that. > It is pretty odd that the naming restrictions for databases (regression*) is > different than for all the other object types... > Yeah. >> But do we really have to create a new database and a new tablespace for these? >> Database and tablespace creations are quite heavyweight operations. >> >> We already have an existing tablespace and an existing database as part of the >> regression tests. Couldn't you make do with those? > Didn't do anything about that. > Well, the trouble is that the database test runs a bunch of alter and revoke statements on the created database, that we probably don't want to persist on the existing regression database. I could see an argument for converting this to a TAP test that would only be run once, given our current very profligate running of the core regression suite. That goes doubly for the tablespace test, which could also probably use ALTER TABLESPACE instead of creating a bunch of tablespaces and then dropping them. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com