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 1sxpn2-00CjW5-Ca for pgsql-admin@arkaria.postgresql.org; Mon, 07 Oct 2024 15:36:52 +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 1sxpn1-00CZk4-1r for pgsql-admin@arkaria.postgresql.org; Mon, 07 Oct 2024 15:36:51 +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 1sxpn0-00CZjM-L3 for pgsql-admin@lists.postgresql.org; Mon, 07 Oct 2024 15:36:50 +0000 Received: from mx0a-0039f802.pphosted.com ([205.220.164.45]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sxpmw-0032vk-NK for pgsql-admin@lists.postgresql.org; Mon, 07 Oct 2024 15:36:49 +0000 Received: from pps.filterd (m0209981.ppops.net [127.0.0.1]) by mx0b-0039f802.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 497F7MvO002433 for ; Mon, 7 Oct 2024 08:36:43 -0700 Received: from mail-yw1-f200.google.com (mail-yw1-f200.google.com [209.85.128.200]) by mx0b-0039f802.pphosted.com (PPS) with ESMTPS id 4232w01s6u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 07 Oct 2024 08:36:43 -0700 (PDT) Received: by mail-yw1-f200.google.com with SMTP id 00721157ae682-6e2555d3d0eso75581637b3.1 for ; Mon, 07 Oct 2024 08:36:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728315402; x=1728920202; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=NWmhL8xv3TVNIFOuhh1AAW204gAB23UBB/zRBZCA6B4=; b=KayK9UXCH+sWXlnus7t0K7tS4OOp4HQa1ri+zvicQOuebEA87cLzYpb+qV02VzpMzT a2ACkCDr2XzEfY7ZwYwX452GEmmt5Z+OcIlDvzrlP/+K8ioam3EFrMAPKu7f5msmOxM6 EZOIXwlv979AWUL0JtRceOpgEiHfpuSiRAVGrZpY6SJ5+UzsPIvuO9vSPeHf8SWbjhCj gNfG+2Ch2AFD/1ATL/pPPOvIv0mtqY0F5iEEcUydzxTd6EFx976U6qHPQ47nVGBHe20S fZbhWBCDOtXs/gZ+CLEbnTPXyZgHQa3sKMGvKG96j4lSNLL+jPtF+8EwXDCXAY9TafY9 Roow== X-Forwarded-Encrypted: i=1; AJvYcCWOGsV+36y+zC1516JwXfp0bcq9bhO7k37d6hgDBVE7WLxMukdYKd3hqmBYrjU/TMh1Tbu5eWJknX1qXA==@lists.postgresql.org X-Gm-Message-State: AOJu0Yx5LxuXyAWgCrw4jWPAd6y7CrrKxGJRhlVB/lqV77mCp0wHcYHT V+lntLndmH/enh8Wc/q2fdA0a7TlpEMjz05rYe/3e5ITBFSwBUHIwUULn/ve8IxWc1bCb6Aa9Yt 4dFwkjHV3xEgsmrSuZj8jKTHGUCJ5k0fzO3r2vqEbxGfbuZf65J/L5VSMwLoCYcWzJtFIAQrkAJ HLAShZ/1wpVYIa9TJUyoDfMT6XoopX3wxvxc7a2IENc4hXeyQStmAJoRu9G6SpNpkDzCU= X-Received: by 2002:a05:690c:2c86:b0:6db:3b2f:a18a with SMTP id 00721157ae682-6e2c702942bmr70117687b3.11.1728315401846; Mon, 07 Oct 2024 08:36:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFRDDY5YGZfwGc9m8BCtjtwVQHmii916l/eYBNCsMxsHXxvQHNWSG0h2zW692kAntyxMKxZ7XymRpS68o+Y5bQ= X-Received: by 2002:a05:690c:2c86:b0:6db:3b2f:a18a with SMTP id 00721157ae682-6e2c702942bmr70117457b3.11.1728315401299; Mon, 07 Oct 2024 08:36:41 -0700 (PDT) MIME-Version: 1.0 References: <717426.1728080548@sss.pgh.pa.us> In-Reply-To: From: Sam Stearns Date: Mon, 7 Oct 2024 08:36:30 -0700 Message-ID: Subject: Re: Same Table Name - 2 Owners To: Guillaume Lelarge Cc: Tom Lane , "David G. Johnston" , Pgsql-admin , Peter Garza , Henry Ashu Content-Type: multipart/alternative; boundary="0000000000008e02e30623e4c961" X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-07_08,2024-10-07_01,2024-09-30_01 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008e02e30623e4c961 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thank you all for the help! We're testing this out now with some Oracle imports into Postgres. Sam On Sat, Oct 5, 2024 at 12:07=E2=80=AFAM Guillaume Lelarge wrote: > Hello, > > Le sam. 5 oct. 2024 =C3=A0 00:22, Tom Lane a =C3=A9cr= it : > >> "David G. Johnston" writes: >> > On Friday, October 4, 2024, Sam Stearns wrote: >> >> Is it possible to do this in Postgres? >> >> > Within PostgreSQL, two objects can have the same name if they are of >> > different types (note, relations is a fairly broad type category) or >> they >> > exist in different schemas. >> >> The Oracle case probably also works by putting the tables in different >> schemas. I recall hearing that Oracle identifies "owner" with >> "schema" much more closely than we do. >> >> > +1 > > Great article on this topic: > https://stormatics.tech/blogs/transitioning-from-oracle-to-postgresql-und= erstanding-the-concept-of-schema > > Regards. > > > -- > Guillaume. > --=20 *Samuel Stearns* Lead Database Administrator *c:* 971 762 6879 | *o:* 503 672 5115 | DAT.com [image: DAT] --0000000000008e02e30623e4c961 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you all for the help!=C2=A0 We're testing this o= ut now with some Oracle imports into Postgres.

Sam
=

= On Sat, Oct 5, 2024 at 12:07=E2=80=AFAM Guillaume Lelarge <guillaume@lelarge.info> wrote:
He= llo,

Le=C2=A0sam. 5 oct. 2024 =C3=A0=C2=A000:22, Tom Lane <tgl@sss.pgh.pa.us> a = =C3=A9crit=C2=A0:
david.g.johnston@gmail.com> writes:
> On Friday, October 4, 2024, Sam Stearns <sam.stearns@dat.com> wrote:
>> Is it possible to do this in Postgres?

> Within PostgreSQL, two objects can have the same name if they are of > different types (note, relations is a fairly broad type category) or t= hey
> exist in different schemas.

The Oracle case probably also works by putting the tables in different
schemas.=C2=A0 I recall hearing that Oracle identifies "owner" wi= th
"schema" much more closely than we do.


+1


Reg= ards.


--
Guillaume.


--

Samuel Stearns
Lead Database Administrat= or
c:=C2=A0971 762 6879=C2=A0|=C2=A0o:=C2=A0503 672 5115=C2=A0|
=C2=A0DAT.com

3D=
--0000000000008e02e30623e4c961--