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 1poQwC-0002qs-99 for pgsql-general@arkaria.postgresql.org; Mon, 17 Apr 2023 15:38:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1poQwB-0002At-8I for pgsql-general@arkaria.postgresql.org; Mon, 17 Apr 2023 15:38: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 1poQwA-0002Ak-PX for pgsql-general@lists.postgresql.org; Mon, 17 Apr 2023 15:38:38 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1poQw8-003SAl-6f for pgsql-general@lists.postgresql.org; Mon, 17 Apr 2023 15:38:38 +0000 Received: by mail-ej1-x634.google.com with SMTP id u3so13293990ejj.12 for ; Mon, 17 Apr 2023 08:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20221208.gappssmtp.com; s=20221208; t=1681745915; x=1684337915; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=afypMV7N8GO26IUgpTEsLEtViqFJpYBJ4VrxrjXTek4=; b=dcOY51rzvF9GazHb1a9zM4JRq3Kw3rWuf9wGGMGK/FdSepB92JishhyV5XLltORP26 Pma/EM0LPrwpmXzMLz6liTGH3Vv7JjZ6KhMfAxB5Eux85Ouevj2eII+w/Q34a/atXmX5 nOlaPhcega6WskZIEhVOGBWU29MBDUX/GN/xNaxnpjGsulfOk6ASo9pTaPfbF+8DCrLN U2SXsY86pJQpvt9CeuGDBzmHmsoM/oXgtq3a0RTZyDUhnn+gOGuIoMnjk/3QO6l88Lti mo3DfN4w22eidsuX1bYo+Rqbfq/B+13g4o5iEAFD35lwrIPmX0ptwxLrigtW828fjl5u wnxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681745915; x=1684337915; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=afypMV7N8GO26IUgpTEsLEtViqFJpYBJ4VrxrjXTek4=; b=Kpa9OmD6l8Ocj1najXmzFiIT8HiXEHQjoHckm9U0yKp4wWz1AAONtTdffLOoZp7tMr rGeXA4Sq08hXBIw0R/jkZKHbidK7c6b6cQy/NPA9TxsdEqMbb3jI2pXK7WNH5QocTT1L XEfmkzE+KJQZNQHLH2RsA06oxqcl5H+f5o7j33+/xydo5NNPoakqKPE4pw1XK4PgasV5 cMK2b2fD+/646XTiFpYvTs710agJoL8UZOZR+Jr+pHHA/YmW2mlVxZeVtbOUDIcx8KpJ N6vlku/epJhxfLzExvBAA6D8WHy/08Lkzb26zmV6iyp3GAuIXI6mXAC0n1wxomZvj5yn cVzw== X-Gm-Message-State: AAQBX9dq1gwmI+7lDxRk5TqD934icS1TjHx+KhhAa3uFGPdf8r4w9V9K YDcPtyG5vBrKtv4UPlyiKJ8Eww== X-Google-Smtp-Source: AKy350ZSIVGRlQ9+ETSt2CIFVv3irHkuEP7G6BbyFQ6xn3eZbg7ueBefyrycggp91e1uSvDzc19JyA== X-Received: by 2002:a17:906:12d8:b0:94d:20d2:47ce with SMTP id l24-20020a17090612d800b0094d20d247cemr8040101ejb.14.1681745915054; Mon, 17 Apr 2023 08:38:35 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:52c4:9039:63a9:3fed:8e54]) by smtp.gmail.com with ESMTPSA id x23-20020a170906135700b0094f0621cd27sm4269354ejb.55.2023.04.17.08.38.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 08:38:34 -0700 (PDT) Message-ID: <4ac84894e2bcf19ef0a9e51ba7ab078160a3ea1c.camel@cybertec.at> Subject: Re: Should I add a new schema for my application? From: Laurenz Albe To: Alexander Farber , pgsql-general@lists.postgresql.org Date: Mon, 17 Apr 2023 17:38:34 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 2023-04-15 at 12:06 +0200, Alexander Farber wrote: > I am seeking for a general advice if it would be a good idea for a Postgr= eSQL/PostGIS using application to add a third schema. >=20 > I am using postgis/postgis Docker image which comes with "public" schema. >=20 > Then I have loaded OpenStreetMap data into the database and have created = "osm_schema" for that: >=20 > And now I need one more table, for the new mapping feature in my applicat= ion, which would reference the osm_id column in the planet_osm_roads. >=20 > I have not used database schemas at all until yet, I am looking for an ad= vice if I should add a third schema here, just for my application? I would add another schema. The "public" schema for the extensions, "osm_schema" for the OpenStreetMap = data, and a third schema for your table. Perhaps you want to add additional obje= cts later. Yours, Laurenz Albe