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 1tyXoE-008A1u-4B for pgsql-general@arkaria.postgresql.org; Sat, 29 Mar 2025 15:09:18 +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 1tyXoC-00CHma-Qf for pgsql-general@arkaria.postgresql.org; Sat, 29 Mar 2025 15:09:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tyXoB-00CHmS-Tg for pgsql-general@lists.postgresql.org; Sat, 29 Mar 2025 15:09:16 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tyXo9-001oZo-27 for pgsql-general@lists.postgresql.org; Sat, 29 Mar 2025 15:09:14 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id A4B331140151; Sat, 29 Mar 2025 11:09:12 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Sat, 29 Mar 2025 11:09:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1743260952; x=1743347352; bh=bRegQkIRMa0mXGQzf6b693iuKEsAJrDYBWuTcHLiOu0=; b= de2V0zz6bQ8TBBoJfe88mQjVDzddUOsCVsvV8DN1XAhYQ/LKusQXmeW+6Vgmbxm3 W5Y7U+4JsbUbJYz0aFFN60ihkCZPcWrtvm1wf9dquBvUj38urb4grp1ZlaOMLtpc BPZn/dfD51vRB34EKx+wWpdnR/pcXhaPUL0VW13OONI5kUoIKs6CP5StLCCr3e0y MhPd0H/UC1XXrIZROqF4kBVPt1nuiBB0vGHQ8h1fToZS2zAw6GPL8cocBHWH+3xV qlhsQbEaL3rDmV8xQx9YastzCX21c+YiYDXtCWZsJSrJrJePzRZI3v3oAobyMCUn 0L187HgwomGbEY5SsSZmNw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1743260952; x= 1743347352; bh=bRegQkIRMa0mXGQzf6b693iuKEsAJrDYBWuTcHLiOu0=; b=l GIH5CkyPRcxDaVaGu+EeUsI6vWbZAdyWKC1aQhNIFQSwo3tw6wB+Ab+9koCZ7rRP U4kV2iqco0us3EkohFkFjTYEr4LBr0R8nMZvn89ft8nq4golE6Spfg6oHXa4LeuW zIOoO6GrKMJf788UWyXcANJEvYQWBrU6nxQFtLVNxiAF2Rp82t9hwAqVhLrDLk3f yvM8pV0Z6mr+a++4/UIF3wQKy18ndLuiGcAR1hvid9YbFdfh4DweA/vyHUwwjrL0 JOsUqPEkf5EyOXnaDAc80U9uIL84FwCA7iIlS54pPko1avEEQfPkIfirbPUQmuq6 8JKT+FozVLOOLMBRrey3w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddujeeggeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddt vdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvh gvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepgffhkeejffefieet hfeuueehheekgeetvdeutedutdeigefggeevjedtfeeiudetnecuffhomhgrihhnpehmhi hsqhhlrdgtohhmpdhmrghrihgruggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvh gvrhdrtghomhdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepkhhjshejudegsehhohhtmhgrihhlrdgtohhmpdhrtghpthhtoheprhhonhhljh hohhhnshhonhhjrhesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhgvghn vghrrghlsehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehsnh drudefiedusehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 29 Mar 2025 11:09:11 -0400 (EDT) Message-ID: <67241bb8-52ac-40c5-a826-63f9c24590bf@aklaver.com> Date: Sat, 29 Mar 2025 08:09:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Quesion about querying distributed databases To: Kevin Stephenson , Ron Johnson Cc: "pgsql-generallists.postgresql.org" , "sn.1361@gmail.com" References: <099b49ebae94e23f19afdad3f8c9c6e702a3a2d5.camel@cybertec.at> <6d7e1022-6404-4dab-8467-8d1f6e8b63cb@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/29/25 02:15, Kevin Stephenson wrote: > Bumping this old thread to clarify a few points. > > As an initial note on terminology, a "server" can be called a server, an > instance, a server instance, or in PostgreSQL's (PG hereafter) case, a > "DB Cluster." They all are used interchangeably in the wild to mean the > same thing, with perhaps "server" being the most ambiguous. And that > thing is a running process that is listening to (typically) a single > port and handing connections off to individual threads or processes (or > some other construct). The comments below use the word "instance" for > consistency and brevity. > > MariaDB > As mentioned by others, MariaDB (and MySQL proper, both hereafter > referred to as MySQL) instances only support a single database. The > CREATE DATABASE statement is a de facto synonym for CREATE SCHEMA (it is > disappointing that MySQL and MariaDB docs still do not mention this > significant fact). To disabuse those who believe MySQL support multiple Actually they do: https://dev.mysql.com/doc/refman/9.2/en/create-database.html "CREATE DATABASE creates a database with the given name. To use this statement, you need the CREATE privilege for the database. CREATE SCHEMA is a synonym for CREATE DATABASE." https://mariadb.com/kb/en/create-database/ "CREATE DATABASE creates a database with the given name. To use this statement, you need the CREATE privilege for the database. CREATE SCHEMA is a synonym for CREATE DATABASE." They don't expound on what that means in real terms. > databases, query any of the INFORMATION_SCHEMA tables and for all those > that have the *_CATALOG column (CATALOG is a synonym for DATABASE), > notice every row in every table that shows a catalog column, they all > say "def", as in default. Further, the identifier used in CREATE > DATABASE will show up in INFORMATION_SCHEMA tables in *_SCHEMA columns. -- Adrian Klaver adrian.klaver@aklaver.com