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 1nsdc1-0003bS-Av for pgsql-hackers@arkaria.postgresql.org; Sun, 22 May 2022 04:54:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nsdbz-0007YP-Jc for pgsql-hackers@arkaria.postgresql.org; Sun, 22 May 2022 04:54:39 +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 1nsdbz-0007YE-2o for pgsql-hackers@lists.postgresql.org; Sun, 22 May 2022 04:54:39 +0000 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nsdbt-0007CU-Sl for pgsql-hackers@lists.postgresql.org; Sun, 22 May 2022 04:54:38 +0000 Received: by mail-qk1-x72e.google.com with SMTP id t2so6545608qkb.12 for ; Sat, 21 May 2022 21:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7pI6XbuJeg1VVKFLUkp8kulw6H8+Gi7d8xrJbK/FhfY=; b=cbSEu5oxogCwbPVSeRDBqRUxd/AMFIvcqawtYI5/RRNPnDxr5ses79VTeN8LVU8Dn1 umCuuyeJNhKEhYbs83/XwyeC9WP4amWQL41HKSR4NIyttFp65wUZGTlbVb4sTX2nrS6S DcZzHemRCDwykyrpZqk0DOj6GNgK6AS7l011Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7pI6XbuJeg1VVKFLUkp8kulw6H8+Gi7d8xrJbK/FhfY=; b=YmQXhPJQOnrW9o5MlHS2xPYRrn3laFatNSUvOPkTQhSIarNV74Cr/Z9ctMzCZo1WYe ueEDxHtVQYWRIGeUl3oNl2jA9YA6V2Xst4jjVEfh+rkdgV8ODreX7mEoPVnnbojVcUMu 8uAfZb1LtFlp10Do51UyGu2NvukNz+E2vWD76lfb8ciNHGZjuHJWJblLaBA8aVKlQpHX +IBfRXVtQC15uGaUWuS5XN+45WK/5HxTFt2PQY1XEHuY8kpWtK8lgIhwh1blJLUfv2KS oZ+65riRB0NP+JnnOv9aing7mV6vQdL8mYcqIQ9i+SqGjN0pMUwfSiGm9h/6xZFJ8M5w 8Rjw== X-Gm-Message-State: AOAM530+oSAwMW6ULtm8D83osGXJ8j/72zeYSP20WmJKFsD2/y7kwse8 EcQdvwnYLcyLRySQVHLMOcGd6g== X-Google-Smtp-Source: ABdhPJwEC5jw7RwDJc+lbsJNJtzeLCtTyNnxIk/8TCHfgCDw0AExKPdVo8dEMKaJRLttdEj4WUzVdw== X-Received: by 2002:a05:620a:2699:b0:47d:753c:b8ff with SMTP id c25-20020a05620a269900b0047d753cb8ffmr10675045qkp.763.1653195271673; Sat, 21 May 2022 21:54:31 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id c25-20020ac85199000000b002f39b99f685sm851510qtn.31.2022.05.21.21.54.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 May 2022 21:54:30 -0700 (PDT) Date: Sat, 21 May 2022 21:54:27 -0700 From: Noah Misch To: Thomas Munro Cc: Tom Lane , Alvaro Herrera , Amul Sul , PostgreSQL Hackers Subject: Re: tweak to a few index tests to hits ambuildempty() routine. Message-ID: <20220522045427.GA3015504@rfd.leadboat.com> References: <202204251353.vgkpgcy3szt2@alvherre.pgsql> <39945.1650895508@sss.pgh.pa.us> <20220521061509.GA2980571@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, May 22, 2022 at 04:24:16PM +1200, Thomas Munro wrote: > On Sat, May 21, 2022 at 6:15 PM Noah Misch wrote: > > On Mon, Apr 25, 2022 at 10:05:08AM -0400, Tom Lane wrote: > > > Alvaro Herrera writes: > > > > Hmm, so 027_stream_regress.pl is not prepared to deal with any unlogged > > > > tables that may be left in the regression database (which is what my > > > > spgist addition did). I first tried doing a TRUNCATE of the unlogged > > > > table, but that doesn't work either, and it turns out that the > > > > regression database does not have any UNLOGGED relations. Maybe that's > > > > something we need to cater for, eventually, but for now dropping the > > > > table suffices. I have pushed that. > > > > > > It does seem like the onus should be on 027_stream_regress.pl to > > > deal with that, rather than restricting what the core tests can > > > leave behind. > > > > Yeah. Using "pg_dumpall --no-unlogged-table-data", as attached, suffices. > > 'pg_dumpall', '-f', $outputdir . '/primary.dump', > - '--no-sync', '-p', $node_primary->port > + '--no-sync', '-p', $node_primary->port, > + '--no-unlogged-table-data' # if unlogged, standby > has schema only > > LGTM, except for the stray extra whitespace. perltidy contributes the prior-line whitespace change.