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 1pg8ET-0007Ey-D9 for pgsql-general@arkaria.postgresql.org; Sat, 25 Mar 2023 18:03:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pg8ER-0005as-Iw for pgsql-general@arkaria.postgresql.org; Sat, 25 Mar 2023 18:03:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pg8ER-0005aj-7k for pgsql-general@lists.postgresql.org; Sat, 25 Mar 2023 18:03:11 +0000 Received: from evolvis.org ([2a02:a00:2000:f::1]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pg8EK-0001sO-1k for pgsql-general@postgresql.org; Sat, 25 Mar 2023 18:03:10 +0000 Received: from x61w.mirbsd.org (2a0a-a540-435-0-21f-3bff-fe0d-cbb1.ipv6dyn.netcologne.de [IPv6:2a0a:a540:435:0:21f:3bff:fe0d:cbb1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by evolvis.org (Postfix) with ESMTPSA id E5A4C100966; Sat, 25 Mar 2023 18:03:00 +0000 (UTC) Received: by x61w.mirbsd.org (Postfix, from userid 1000) id 964C460E9F; Sat, 25 Mar 2023 19:03:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by x61w.mirbsd.org (Postfix) with ESMTP id 9089F60A1E; Sat, 25 Mar 2023 19:03:00 +0100 (CET) Date: Sat, 25 Mar 2023 19:03:00 +0100 (CET) From: Thorsten Glaser To: Markus Pilman cc: pgsql-general@postgresql.org Subject: Re: Binding Postgres to port 0 for testing In-Reply-To: Message-ID: References: Content-Language: de-DE-1901 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Markus, >I am building a simple integration test framework for an application that = I >am building. For this project I am planning to use PostgreSQL. check pg_virtualenv(1), which apparently is a Debian thing. It auto-creates and auto-deletes at the end, if desired, a cluster and runs your program with suitable environment variables to access that cluster, which includes choosing an available port. This was in fact made for integration testing, though I use it for quickly spinning up throwaway DBs for one-shot tools as well. bye, //mirabilos --=20 Infrastrukturexperte =E2=80=A2 tarent solutions GmbH Am Dickobskreuz 10, D-53121 Bonn =E2=80=A2 http://www.tarent.de/ Telephon +49 228 54881-393 =E2=80=A2 Fax: +49 228 54881-235 HRB AG Bonn 5168 =E2=80=A2 USt-ID (VAT): DE122264941 Gesch=C3=A4ftsf=C3=BChrer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Ale= xander Steeg ***************************************************= * /=E2=81=80\ The UTF-8 Ribbon =E2=95=B2=C2=A0=E2=95=B1 Campaign against Mit dem tarent-Newsletter ni= chts mehr verpassen: =C2=A0=E2=95=B3=C2=A0 HTML eMail! Also, https://www.tarent.de/newslette= r =E2=95=B1=C2=A0=E2=95=B2 header encryption! ***************************************************= *