From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Oracle vs. PostgreSQL - a comment
Date: Fri, 5 Jun 2020 15:48:55 +0300
Message-ID: <a16f40c9-c4be-ce85-86fb-1192f9e2d522@matrix.gatewaynet.com> (raw)
In-Reply-To: <AE48003F-310B-419B-AEFA-AD9E1968289F@outlook.com>
References: <0959C81A-5B07-4D04-A6B1-57AA78A9A553@gmail.com>
<CAP50yQ9E-avUKizyzZda=9QOPU=rQhaa9OuhG3R4x=AA-Y+6nw@mail.gmail.com>
<20200601095835.GA1996@hjp.at>
<cbeb3b5a-cf6c-5a73-740f-5c87905ecfdd@gmail.com>
<974ab21a-013c-8dbc-18f5-575f1e356647@postgrespro.ru>
<a6e72990-cb54-f218-8111-0b3d897803cf@gmail.com>
<20200602183038.GY6680@tamriel.snowman.net>
<C47A2DC6-AE2E-4ED1-BF28-41E026D0B40E@comcast.net>
<c741e0c1-507c-9ac9-aa1f-53ce00e43188@matrix.gatewaynet.com>
<AE48003F-310B-419B-AEFA-AD9E1968289F@outlook.com>
On 5/6/20 3:33 μ.μ., Ravi Krishna wrote:
>>> Plus PG does not directly support cross database queries using 3 part name, something
>>> sqlserver excels at.
>> Maybe because SQL server does not have real databases but schemas instead ?
>> This sucks security wise.
> SQLServer has real databases with its own transaction log files. You can restore individual databases in a cluster.
> They also have schemas which are not same as users (Oracle treats users and schemas same).
Ok, I never meant SQL Server does not have real databases, I meant it handles databases as top level schemas.
>
> For security, there is grant connect to the DB and further filtering based on schema.
PostgreSQL has stronger protection at connection level, via pg_hba.conf . PostgreSQL also supports db-level GRANTs .
In MS SQL server if you need an additional DB for maintenance tasks or to act as an intermediate bridge (like in our case) with write access on it, then automatically you write access to the main
schema (ok DB in MS SQL terms). (and need further REVOKES to fix security). This (security-wise) is just poor.
So the cross db joins come with a price.
>
> I find SQLServer implementation pretty strong in this.
>
> The only time this can be a problem is when few databases failover in a mirrored environment (streaming replication in PG speak).
> Then suddenly 3 part names would fail if the remote DB is no longer primary. My experience with SQLServer is badly dated. Last
> time I worked was SS2008. I believe in later versions they solved this problem by the failover group concept which failovers all
> inter-related databases at one go.
>
> BTW Mysql treats databases and schemas as same (that's what it was few years ago)
>
--
Achilleas Mantzios
IT DEV Lead
IT DEPT
Dynacom Tankers Mgmt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: achill@matrix.gatewaynet.com
Subject: Re: Oracle vs. PostgreSQL - a comment
In-Reply-To: <a16f40c9-c4be-ce85-86fb-1192f9e2d522@matrix.gatewaynet.com>
References: <0959C81A-5B07-4D04-A6B1-57AA78A9A553@gmail.com> <CAP50yQ9E-avUKizyzZda=9QOPU=rQhaa9OuhG3R4x=AA-Y+6nw@mail.gmail.com> <20200601095835.GA1996@hjp.at> <cbeb3b5a-cf6c-5a73-740f-5c87905ecfdd@gmail.com> <974ab21a-013c-8dbc-18f5-575f1e356647@postgrespro.ru> <a6e72990-cb54-f218-8111-0b3d897803cf@gmail.com> <20200602183038.GY6680@tamriel.snowman.net> <C47A2DC6-AE2E-4ED1-BF28-41E026D0B40E@comcast.net> <c741e0c1-507c-9ac9-aa1f-53ce00e43188@matrix.gatewaynet.com> <AE48003F-310B-419B-AEFA-AD9E1968289F@outlook.com> <a16f40c9-c4be-ce85-86fb-1192f9e2d522@matrix.gatewaynet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox