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 1wI6wd-007ndk-2y for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 15:35:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wI6wd-003zz4-0Z for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Apr 2026 15:35:23 +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 1wI6wc-003zyw-2O for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 15:35:22 +0000 Received: from mail-yx1-xb136.google.com ([2607:f8b0:4864:20::b136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wI6wa-00000003p2D-2qwg for pgsql-hackers@lists.postgresql.org; Wed, 29 Apr 2026 15:35:22 +0000 Received: by mail-yx1-xb136.google.com with SMTP id 956f58d0204a3-651cfaa21e6so1080866d50.0 for ; Wed, 29 Apr 2026 08:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1777476918; cv=none; d=google.com; s=arc-20240605; b=NhbLQhirVBQR3MEeet3d3eZF+KDiCapFg8styu4/BwRSq9FhZb4TkQp6nLn17VZ48K X2LY3n1dviX+BYwDzs1cGzmVjnSETnf43a3Ad5cTZ60slPWKrMluYuciEaNFUULkqBvW blEN8vk8To0z+gBV4DEU0ofyknM3l8E8Il9N9aiosO/E4EHTDK/1IQb9a/Sjo1f+IgLh l2T89ohO3aMCmUgPlv8ffUqPceAtnjZoO6kZdkCQPMyUKOTKGwoEzcI2x7Kfo2qrIIVJ tFcPocIFVoNNEeino4pXQ0p3ZTAFIKH58St8K+oiFk1nYQs0avpmx6M27OkEc982WOY4 F+0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=II7dQz18FJMCS8057NzYk0RAyVzFwZz+Jnlogg2LyHw=; fh=SbQ79qpZBoWIuhxRPXtgiOllyL2UmjTRuHylxDJdjts=; b=afQNt5/sSRnLDTIkGHfV7XlZmDyga0PoZg+Q/CqI34DtHW1eZmxXmHQTkyKt5Zs2Jc MwMONuPlGgXAbZFbzC4HfuSUtrzhwMjOrx8CR0x4tj7QRFCDWCdP6/SxG8CDjAhMlFeu V2OCCGqpumMbr4vaG/x+PGkGVST3buhsJXiDu9yaAOGamRo6VVhHARMrkr9d6+DyW3v6 OvnCR8s/BR1BLdRGSfUVhBvmZs6hC82XQ8QjlE8spAJWeVzC4uWYjrRE6R0qjeP2QR3+ jRuQNIiPG3QFekTjE7EPUckXsgQJO6roYyMV7Sq0rgSaXnoxUwvkQbX65BKyXDBGS4Km h3Lw==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20251104.gappssmtp.com; s=20251104; t=1777476918; x=1778081718; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=II7dQz18FJMCS8057NzYk0RAyVzFwZz+Jnlogg2LyHw=; b=Y6p9sUzUqsQKVH3RAF9nYWhLPyBV6GnGEqFBFSf/uiAylMPlrHZD2/dcd5I5TOA59T EDrfu+kLN+ZYML9vzCvMFS1UeRfr1poxZ40Lwk2p6Sz9et3hc+jz5fqC08WFQB91D8dT WDIEc+jYEXltKH+2Kzs6/l4UZnzdhyvgPLK5KCK7wBcGfhoSEPtmKeGN1Gsb9KPLxxub dlTVUDCKDFqws/0vBgcaxlH/gu5abyHBS1T2u9PcNZ0kYlsqHBvb0cUQZEOj7mIxT1Fv gN+kqRoh2orqbd1tsvjpYMmCxZbwWsUzv3GR9E+igEXfyE7CYh91IuERJrmyT8LPzHGj jtJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777476918; x=1778081718; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=II7dQz18FJMCS8057NzYk0RAyVzFwZz+Jnlogg2LyHw=; b=NxI86t5IsD3dqols0pQgCCqm+1IMhlALPVfkV7Td/vnCIJwawvWlZomUBowlBD1o0v xppfvFhn2+miXms/Y1k3cQelMsR009MXBGsKn6xjGv6ixoOZ/GhWe4kPO9f6QkueSEGf WgDDsE78VlF1enYVipMjM9AdC73RDmSdtcXr2tEX4jv1h8zVUTvRQ9JmfiEKUwxhHzXH D0Y5IrLjimhq50eIcv+D536q7MEGZ2SL+Y86KNchAeFstlchmMS4UlArL+MdypL+hLNt 3tcuX/opgELPZMeDClMHY+KAi5seuMkY6+buoeWqqdzothqmB2xKb5Z4DqtVfVyWBc2z rLFA== X-Forwarded-Encrypted: i=1; AFNElJ8cNrekDPLZZ+ZPRACDmDr9/K5JJn0Q0XzC3BbTEqRqSEq6pal+ZzX5D5exKjtRtnOwehsGiJ3i8xGnm9IC@lists.postgresql.org X-Gm-Message-State: AOJu0Yy8sh5Vm2fBZ+RKGz2PWlhOaxu0CKv7hXaOV4pMJn8tkLYXoSZM jNBH7Tkd7ePEnAXAvXhw7lu3p0WqXPjTJXCPRw3e4wEAeT1x1Z/I7vJC5zsiEJZQm6omtye7WeF dgfPKnhwi5M/n4lq18dIGZbk1Gze/nALijCfMnFLPiQ== X-Gm-Gg: AeBDieuSVA2XaTvc0adZz2OsEdu3GNTgBBRjf5+dYZOCA+Wb7KKQodS+z6KrelnVwiv rpAu67dkse4izvBQS2nurfDDumLCAUNThpaaD9ZWMyywMvaZTXithqKgxZluPGZgnjtp02Gh+Jy 8744tvVg7Bxd0b6trR1muwMYRkvErzwMRXQiWckYZcyjBOT1zOx16Q25emXsGk6dNIkRDOi4H1c HVo9livtxT6faado2xSbrSDtHCGnOye6tCnJ2OKpxCO6H8s4E4Zx+Cvpc8XjgdwKsqK+YQMMLEf 4vfFuf3cB/UQU8jDBwKUvCVWsoZ3zHA= X-Received: by 2002:a05:690e:c4e:b0:651:c221:9648 with SMTP id 956f58d0204a3-65bff34bd73mr2705511d50.10.1777476918431; Wed, 29 Apr 2026 08:35:18 -0700 (PDT) MIME-Version: 1.0 References: <202603201311.yhtqmvektawm@alvherre.pgsql> <8ec9b67d-939e-4b22-8d56-a5129f92d32d@app.fastmail.com> <555cdee4-c024-4872-9d96-82ef4216239c@dunslane.net> <5c67dc79-909a-4e17-8606-6686667da6c6@dunslane.net> In-Reply-To: From: Andrew Dunstan Date: Wed, 29 Apr 2026 11:35:07 -0400 X-Gm-Features: AVHnY4KN7YtPE-U4hRAcxPhBWqzx8fKPmFo3a7iruJChx9gAGvq9jtn-Vz---B4 Message-ID: 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 Content-Type: multipart/alternative; boundary="00000000000051de6f06509b18c9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000051de6f06509b18c9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Apr 26, 2026 at 10:07=E2=80=AFAM Andrew Dunstan wrote: > > On 2026-04-06 Mo 7:39 AM, Andrew Dunstan wrote: > > > > On 2026-04-05 Su 4:03 PM, Andres Freund wrote: > > > > > >>> 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. > > > > > > > > Here's a patch that converts all these into a single TAP test, and > reduces the number of tablespace creations. > > > > pushed. cheers andrew --00000000000051de6f06509b18c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sun, Apr 26,= 2026 at 10:07=E2=80=AFAM Andrew Dunstan <andrew@dunslane.net> wrote:

On 2026-04-06 Mo 7:39 AM, Andrew Dunstan wrote:
>
> On 2026-04-05 Su 4:03 PM, Andres Freund wrote:
>
>
>>> But do we really have to create a new database and a new table= space
>>> for these?
>>> Database and tablespace creations are quite heavyweight operat= ions.
>>>
>>> We already have an existing tablespace and an existing databas= e 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.
>
>
>

Here's a patch that converts all these into a single TAP test, and
reduces the number of tablespace creations.




pushed.

c= heers

andrew=C2=A0
--00000000000051de6f06509b18c9--