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 1tioDc-002Xjo-GR for pgsql-admin@arkaria.postgresql.org; Fri, 14 Feb 2025 05:26:28 +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 1tioDa-0033zF-C2 for pgsql-admin@arkaria.postgresql.org; Fri, 14 Feb 2025 05:26:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tioDZ-0033z6-Vo for pgsql-admin@lists.postgresql.org; Fri, 14 Feb 2025 05:26:26 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tioDY-000i2d-2K for pgsql-admin@lists.postgresql.org; Fri, 14 Feb 2025 05:26:25 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-ab7d58aa674so248129166b.0 for ; Thu, 13 Feb 2025 21:26:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1739510783; x=1740115583; darn=lists.postgresql.org; h=mime-version:user-agent:references:in-reply-to:date:to:from:subject :message-id:from:to:cc:subject:date:message-id:reply-to; bh=RAmh7nIzYWzf+Xt4fs4tX1j6D+irakOwKZfffnX1Ae4=; b=ZuV7oxyvXkZ1yfGn3Vryu3SOTymaYrHrHdf0Yl7iLOtuP2Vt/SlEXwQz9nkKBmonEt S9dIgrp6fJ9UpamfTUKCqV/NYInDJ6OPR/hbF/Jsidke177ZhsKhbdQnuz/IwunLQpgK ZXfbWG5EUi3z748zanzchOuGoRmMR93+H0OCew8AGykAjCXlAk/pXVlfNEYA6ySvk7qW EM3IkfboYERfBd9H78GpqjWvO+UMLK8wsrhro2v6KoxfbspAWL6sZLaIok9ncnPYvsqU Xq60QzPRZLbRULhh8XwMH7C7IMJhFkMhNhyRw5e2u0QozvIeza49m8zF/np0Hnhm7O5i hdZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739510783; x=1740115583; h=mime-version:user-agent:references:in-reply-to:date:to:from:subject :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RAmh7nIzYWzf+Xt4fs4tX1j6D+irakOwKZfffnX1Ae4=; b=XZ3MIGEPKDlegr/Bssrf8kc6sqbcsfgJ78vGuPkr6l1Z5UpJ2OxZJnsrFhSfBKXQrb Uc70WdZOpPSIiGD9CqO27aJcXDS7kn1kn9CvcLHgHtP3IBHZyZCfBgMNtj+8z7yN8+Q9 rZaOlHUd5cofSXgw0tHp5LaebUWrpZbrqvmslnSXndEm0D7vRB9PQfcPl9UbhJ23eHyU MiUizwkZccQgRYvYHOdWCbd5gZLcXFc4G+J8CgbSExpnaLSQt/6GbiCmlv8TsY77pyoy Dkl4Y1pKUq55bl3Y3xUYROlPNP8w8Phh0ataCdTQmbVqghEKEWs23e3D4gnH6LD1EJ4m MoIw== X-Forwarded-Encrypted: i=1; AJvYcCVbtE5KWkWJeQTEx3/Nk5LTrWpGwX8X0rqnQvTwiOVA0c3H79XiPoCzvLupolF0AHojaLtTlcnVhlQF9g==@lists.postgresql.org X-Gm-Message-State: AOJu0YwMelhkI+1ca/BuWTUHOd3UJgNAZ6MyjyXYIWmDsZuJ/7+e33RZ tzS3ucTEqwkjsKZ0fLFvzaxMI29RrcwlGXxkHWIga9ri11NnssZngB6U5o067xfbZj0Ckyv5Uo8 2r3ejfmRMqIc3onN/hCer0IAGZY+mKMBAT82ZzmkYifZqqFv+jhgK1gkeoDg/JPQhsAZmxuIMnm c= X-Gm-Gg: ASbGncsbSQehCuAjaE8QuQRhHSbu5pNyZE6DapnnjCBBaXa+/KLQfJwvG+yQPwwYfWy /FcXQ1bSjPhp+fmDfSYKgh4uO5w0hwCwXQS7HyJ5QNtWv2mKmiDiEN3JutPmXmrTusRgvnv8wpq LwtlwtWN5Aqhaid+4Z9kQFEELpZQJ/zzkeJSKyZwn1YkJVx1Uz17vHA3k8HQqYzdBftYgUy/Lbn PF781J3y8kveru/ePjPrBrBSqH9t+S00/s7/fhQ3eZLylcxzt3N6RFIwshXVowi7REJyP0PW+0q rVrs0/aBCyzh+25FpSvetI9MFxPNWbM5KG/v X-Google-Smtp-Source: AGHT+IHI1tgXQ/fQqRjkpcrJClWluuxK8rRCuGPq3QChEZ6kipQasn1XBaR0sXlDh1yosM44ykvSOw== X-Received: by 2002:a17:907:7d9f:b0:ab6:f68c:746e with SMTP id a640c23a62f3a-ab7f34afa7dmr936112566b.41.1739510782731; Thu, 13 Feb 2025 21:26:22 -0800 (PST) Received: from localhost.localdomain ([2001:871:255:52d3:3ac8:61ab:b634:342]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aba532591dcsm269124266b.58.2025.02.13.21.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 21:26:22 -0800 (PST) Message-ID: Subject: Re: Create a Database or a Schema -- when to do what? From: Laurenz Albe To: Edwin UY , pgsql-admin@lists.postgresql.org Date: Fri, 14 Feb 2025 06:26:21 +0100 In-Reply-To: References: User-Agent: Evolution 3.54.3 (3.54.3-1.fc41) MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2025-02-14 at 17:45 +1300, Edwin UY wrote: > When do you decide whether to create a database or a schema? > You can still create privs, access and security on the schema level, can't you? Yes, you can. However, the separation between databases is stronger. For example, some people take offence if others can see their metadata. My recommendation is to use different databases whenever you are dealing with distinct data sets and different applications. But if you have data sets that you routinely need to join, it is better to have them in a single database. Yours, Laurenz Albe -- *E-Mail Disclaimer* Der Inhalt dieser E-Mail ist ausschliesslich fuer den bezeichneten Adressaten bestimmt. Wenn Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein sollten, so beachten Sie bitte, dass jede Form der Kenntnisnahme, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail unzulaessig ist. Wir bitten Sie, sich in diesem Fall mit dem Absender der E-Mail in Verbindung zu setzen. *CONFIDENTIALITY NOTICE & DISCLAIMER *This message and any attachment are confidential and may be privileged or otherwise protected from disclosure and solely for the use of the person(s) or entity to whom it is intended. If you have received this message in error and are not the intended recipient, please notify the sender immediately and delete this message and any attachment from your system. If you are not the intended recipient, be advised that any use of this message is prohibited and may be unlawful, and you must not copy this message or attachment or disclose the contents to any other person.