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 1jfebs-0001vx-Vm for pgsql-general@arkaria.postgresql.org; Mon, 01 Jun 2020 07:11:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jfebr-0007Aw-OO for pgsql-general@arkaria.postgresql.org; Mon, 01 Jun 2020 07:11:47 +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 1jfebr-00078s-E6 for pgsql-general@lists.postgresql.org; Mon, 01 Jun 2020 07:11:47 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jfebn-0001Ws-B5 for pgsql-general@lists.postgresql.org; Mon, 01 Jun 2020 07:11:44 +0000 Received: by mail-ed1-x542.google.com with SMTP id m21so6450588eds.13 for ; Mon, 01 Jun 2020 00:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PO/dwNHZ2miBYUOUgCor5tox8NdYPRu2LWFdPhgC+nU=; b=YCkgX2k3mm6jLekugNIldIQHbIi0SE606lgjC42/bajHO8UXL+eGfi7EQNfmHJ8faQ BT27JmpMEGyNxZ3JXL5aXMg2Il/0bl9L5LC+dpZSsnGgdph6WfeDYu1UwwUPgmKcROcE 8PWIJEUIq0gpzerOqdk5lmYrIYKBJ3n87OjRSZFup7aZ1c+m5FCRzDxTxn3BRJzLrbNu FR7mzbTa3zH/rNBUQgnzPXLifeETOK1gdgHjpA4v3gzyqSreobAYz/XQaOXKP1uG6zef UldDeHc61nLfVB2V1x56O4noY32ZC66DgbsZDA819ijevJHpIBIbIOaTUog4ExuSClXB TZAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=PO/dwNHZ2miBYUOUgCor5tox8NdYPRu2LWFdPhgC+nU=; b=pE7sviCioPoQewp7FF2t7XfH9ZCC1YD/K8De0FUK7Y29aytzlVOEyrjCRqIaqzYd+q VF8NvuU7g3o7ldNEKCf1B+/jjuHOmUcoqzvC8oWwiaqke5Krp03SKBDhF2zGI/fkiNNS obVgwajlW0h981mQG14914BYEW1O5Pqj/QdW42BvIUNhYdiBPuHAXCBGKDctXxX02aUa sRMR/5qR6dRs1Z0098a1KiKPWlOka69snkvAarVHP51e+L54fu/hwx52gPIgOGZ4XTm7 y18Yq6ulMVULzRTaKUn70XrkFTMI3MXhV1+QtKrV3JUJTu5BWMG7e/BhI7fob//lqs+A Z37w== X-Gm-Message-State: AOAM532xYUguwLc4CUbSWbAhF+Gob3r8HaovNJHVwy5qWkS+fxcEL2Wj whlZ9dcTdV1IPxVBobAuznA= X-Google-Smtp-Source: ABdhPJyevCvgFxYET/9JB4Aktb3sA7oJgHWi2c35rOT0uRm0jWb7Xsrm38aYBryrwJZhSEp0Vb/+qA== X-Received: by 2002:a50:e1c9:: with SMTP id m9mr19454762edl.196.1590995502103; Mon, 01 Jun 2020 00:11:42 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id s1sm14577354ejh.81.2020.06.01.00.11.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2020 00:11:41 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: Oracle vs. PostgreSQL - a comment From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Mon, 1 Jun 2020 09:11:41 +0200 Cc: Tim Cross , pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <7AAE7380-20AE-4BE4-9EB8-3B20DE8CFD46@gmail.com> References: <0959C81A-5B07-4D04-A6B1-57AA78A9A553@gmail.com> <87d06lnn05.fsf@gmail.com> <24F7752C-AA89-4EC8-B142-DAD6F6E92048@gmail.com> <87a71onsls.fsf@gmail.com> To: Stefan Keller X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Stefan, > On 01. Jun, 2020, at 00:35, Stefan Keller wrote: > Paul F=C3=B6rster wrote: >> Also, I like the idea of global container/cluster-wide views such as = CDB_TABLES, etc., >> a thing which I definitely and seriously miss about PostgreSQL. >=20 > Can you specify little more: What's the use case for this (assuming > you know dblink and postgres_fdw)? you don't expect me to create a dblink to each and every database inside = each database cluster? Reconnecting to another database inside the = cluster is faster. Yet, it's an inconvenience. Also, if I had to create = a new database, I'd also have to setup a dblink to it. Why? I don't know much about FDW. Our developers (increasingly) use Flyway to = distribute their data models across platforms. I know that FDWs are used = in some cases but I don't know much about them (yet). The use case would be to locate whatever a user/developer is referring = to, something like this (assuing such a view would be named = pg_global_tables): postgres# select dbname, schema, owner, tablename from pg_global_tables; postgres=3D# select * from pg_global_tables; dbname | schema | owner | tablename=20 --------+----------------+---------+----------- db01 | schema_test | test | testtab db02 | schema_test_13 | test_13 | testtab (2 rows) Many times, a user calls and is in his context and you don't even know = what database he's on. So you can do a quick search. Interviewing him on = the phone and making him tell you from the start a) takes time and b) = drives him nuts because it throws him out of his context. But I still = need to know which database he's on and which schema he uses. Same goes for all other object types, such as views, etc. It's all there in pg_tables and information_schema (what a name...) but = it's only inside each database and not globally. Cheers, Paul=