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 1jghSW-00061t-QI for pgsql-general@arkaria.postgresql.org; Thu, 04 Jun 2020 04:26:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jghSV-0000Sq-NC for pgsql-general@arkaria.postgresql.org; Thu, 04 Jun 2020 04:26:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jghSV-0000Se-Dc for pgsql-general@lists.postgresql.org; Thu, 04 Jun 2020 04:26:27 +0000 Received: from mail-oo1-xc42.google.com ([2607:f8b0:4864:20::c42]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jghST-0003Rs-5c for pgsql-general@lists.postgresql.org; Thu, 04 Jun 2020 04:26:26 +0000 Received: by mail-oo1-xc42.google.com with SMTP id 7so985695oof.8 for ; Wed, 03 Jun 2020 21:26:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=aR4kZZfjw/5AFBpUrJnFIbBbH+MR7GT6AUsC2ZQ9sMw=; b=DVch2XUphzT3UxBKBkvTZhmVCLm74GUjsnjWWzwOyoEXahFZCtqzAeAewiYoIf8DO5 YAjeHpA2reaptQD/7CaqAR0tQHA9ErREwPHlo3AgPzy0i6BITjqJOfDZmSEJ7TulR5Dr XTd442Xu40Fg5H2bQODxiI26qyNdliSp+gHJtybVNqmjRkTHB0U/fFn3XeFAmuy0ZgI5 S+L1qaKO2Pe9Hwli80Xu4L2AyoTDjuMFqTpuHfWXTJJI+JohWb/Q58MFZ9S3T0Mo0iry hjSK32BUjSbvDFhdzSWeUdfaCUCPSsNwFm5/VNfLUcirM2barAIEw4BqwSVtH8TrcJJe wxqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=aR4kZZfjw/5AFBpUrJnFIbBbH+MR7GT6AUsC2ZQ9sMw=; b=hs8J/n+2YXBidDyKJIGjgT3aOgamndiY7QHJiWSnHtWhLBuT4bpsNa5a+NHeJiicTK MPlsSClQTah0fwnn+xXIlLybyR7R557GaiQZh0j2sFocGeogNJqkil0rin1Pzk8PIksa ugiC5np0vOSlXCUUFQqgroN+ZnajBr4dDqkY0Bp8ZDu2rioVUXJ/oQMXKhFhwasD0Qr0 Ce0GhNTPllyIlafN7cqtIo1XonGz/scq0Ai1Eppi+1+DYy6lmkKATWWXCJN6Zyj4l01r djCZukSkmumv6ViOapDw7RA5X5+BrWqMU8QcGolfzRJnPL3NtLGNTlz6GKHEwRKZQ5Ai FI4Q== X-Gm-Message-State: AOAM532SsaKuJv8b3fXJSrLjL52PS2OewVD1toCeLLdFarqYl5+lApi8 n4IwVP1dA1stARq79SMcwnbjS9SbcMLttw== X-Google-Smtp-Source: ABdhPJyMIQIugenyglIWJwWIVBTRMEFbpZ2Dt80mNhSBXVBEZzNdGi9zaLZRyQP2r6IP02kiXIAg2A== X-Received: by 2002:a4a:45d5:: with SMTP id y204mr1427865ooa.73.1591244784168; Wed, 03 Jun 2020 21:26:24 -0700 (PDT) Received: from [192.168.1.10] (ip70-186-126-197.no.no.cox.net. [70.186.126.197]) by smtp.googlemail.com with ESMTPSA id f14sm925037otl.62.2020.06.03.21.26.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jun 2020 21:26:23 -0700 (PDT) Subject: Re: Can we get SQL Server-like cross database queries To: pgsql-general@lists.postgresql.org References: <84A3D231-6AFB-4981-AA09-18FBC7772B77@gmail.com> <1148385.1591213602@sss.pgh.pa.us> From: Ron Message-ID: Date: Wed, 3 Jun 2020 23:26:22 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 6/3/20 2:57 PM, Rob Sargent wrote: >> On Jun 3, 2020, at 1:46 PM, Tom Lane wrote: >> >> Guyren Howe writes: >>> Is it practical to provide the SQL Server-like feature in Postgres? >> No. >> >> regards, tom lane >> >> > That got me chuckling. > I had just decided not to bother posting, but well, here goes. > > I call bs on the “cross db query” notion of tsql - but I admit I haven’t used it since it was a Sybase thing. > > Is db.owner.table (iirc) is really anything more than nuance on schema.table. Does a db for automotive parts need to be up-close-and-personal with a db payroll? Those aren't the only two databases that exist.  Think of a federated system where you've got a "reference" database full of lookup tables, and one database for every 10,000 customers. For 45,000 customers you've got five databases, and they all need to access the reference database, plus "all customers" queries need to access all five databases. -- Angular momentum makes the world go 'round.