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 1qb6Q2-00B80H-L8 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 21:38:38 +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 1qb6Q0-00BSXG-GB for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 21:38:36 +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 1qb6Q0-00BSWa-5S for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 21:38:35 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qb6Pw-001oQG-JH for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 21:38:35 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6bc9c01e154so150116a34.0 for ; Tue, 29 Aug 2023 14:38:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693345111; x=1693949911; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mPHBYo7a9eHiNVGKA6UGfdmjXdueIelH7eRnBXI5vDI=; b=IUzvrAS769wvTm2DQiCi8jc1heuhjNR3sRxW9OiRXfdnU52xKROUQhQQdm7AYWDkZw lD15EVkjvpAKyrM7jzNQDcxtzO5io2kgUJIsC2pBN4Zh+X5QhKXgmrRxQQf27BW12hs8 Iul8Lz8C9SZpN+sXfUflNYNbSYi0woMBl0h+LBu/dVvjZDxGCGaRRLICTuP1kR0hVV6Q PUoT889QLSUoopOJ4SWJvjblrga1K35k829/FHFzKUMcXvyzDqdTf8docnpKTOrB+iz7 AT6XOeLVxgBeoPHk3b9qYFSzrqnnZ1mo0BlxNVae6ejahF27ksUA3z5YWUtQX7XX/l+a gqlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693345111; x=1693949911; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mPHBYo7a9eHiNVGKA6UGfdmjXdueIelH7eRnBXI5vDI=; b=CkJbE7kRzlSnn2zvNlu/63tUpk+Hu42Doc91AumTly+yO8J93n68ogsuxkEq4QlaGi dlNtYtdTnpMzZH6S8/jifUTS+rg8L/QagFWjXlLRQTO5fL4rvqkZF1s70QvakbBucVq5 1b0R6EK3hc7BPE2YdDDwuIUuVtZxjTNkY759aS3ZfoZuVFtA78CRAnT7mD60UdeHXiuq 8xdzDpc8TqtYLPkDWaC+Zjnj/nMFbKTv+MRX2YL5Y1Q5XR9bn/yAyjmCBfYqQdSq6+5g kTCWpnVki5gYy0BvahJw5gmnM2NdGHSy2Lsanor5jrHBz0JKsIEwniDSYzmWRO9ESXqq 0aIg== X-Gm-Message-State: AOJu0YyrKOACgznlcO6sOqDHrhyu6LtRK1lEZJPriXWPsdik2Wpb6oRm GrlFOR7nwxI1Bt6st4/oHUILsnuX0aQ= X-Google-Smtp-Source: AGHT+IFJY8lHq+9k8DAqro05U1Txfq0W6oP76Gkhm8hDu9/C6BOHj4Gj6uzhWU4O9s+M67lK+FnVfQ== X-Received: by 2002:a05:6808:1c3:b0:3a7:5eb7:e32 with SMTP id x3-20020a05680801c300b003a75eb70e32mr2039114oic.13.1693345110691; Tue, 29 Aug 2023 14:38:30 -0700 (PDT) Received: from nathanxps13 ([2600:1700:48f8:340f:eaee:a1f6:88cb:ce94]) by smtp.gmail.com with ESMTPSA id j16-20020a056808035000b003a1d29f0549sm4890586oie.15.2023.08.29.14.38.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 14:38:30 -0700 (PDT) Date: Tue, 29 Aug 2023 14:38:27 -0700 From: Nathan Bossart To: Daniel Gustafsson Cc: PostgreSQL Hackers Subject: Re: Is pg_regress --use-existing used by anyone or is it broken? Message-ID: <20230829213827.GB2266537@nathanxps13> References: <39514DA6-6F49-48BB-AB50-700F7CEA37A6@yesql.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39514DA6-6F49-48BB-AB50-700F7CEA37A6@yesql.se> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Aug 28, 2023 at 03:11:15PM +0200, Daniel Gustafsson wrote: > When looking at pg_regress I noticed that the --use-existing support didn't > seem to work. ISTM that the removal/creation of test databases and roles > doesn't run since the conditional is reversed. There is also no support for > using a non-default socket directory with PG_REGRESS_SOCK_DIR. The attached > hack fixes these and allows the tests to execute for me, but even with that the > test_setup suite fails due to the tablespace not being dropped and recreated > like databases and roles. > > Is it me who is too thick to get it working, or is it indeed broken? If it's > the latter, it's been like that for a long time which seems to indicate that it > isn't really used and should probably be removed rather than fixed? > > Does anyone here use it? I don't think I've ever used it. AFAICT it was added with hot standby mode (efc16ea) to support 'make standbycheck', which was removed last year (4483b2cf). Unless someone claims to be using it, it's probably fine to just remove it. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com