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 1ojjjk-0004b3-JU for pgsql-general@arkaria.postgresql.org; Sat, 15 Oct 2022 16:10:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ojjjj-0004gV-6v for pgsql-general@arkaria.postgresql.org; Sat, 15 Oct 2022 16:10:07 +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 1ojjji-0004Zk-SL for pgsql-general@lists.postgresql.org; Sat, 15 Oct 2022 16:10:06 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojjjg-0004dN-3D for pgsql-general@lists.postgresql.org; Sat, 15 Oct 2022 16:10:05 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id B38843200406; Sat, 15 Oct 2022 12:10:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sat, 15 Oct 2022 12:10:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1665850202; x= 1665936602; bh=a7tJKn0XWj7CThm5hN4vFcUWWAZYEnB7Zkq1HHh88gE=; b=S 8z+9xp8pYtlw8b9GX0mAUYTx/0qGJtBPu6cwjDp2llnRXa7DxKpSTTSfiZEVzsfu 7soXqtLfy7SFHgohXkJ+BwnITIexjtKJbMkOOrR7ei59t5tRu9syG7QbFMHV3RcF u51ToHlz5I+INtD8O4b8Wxtx05DdJidjS+sDf97aCcsRypo9MrtIMXj8daworlfv uF0v4lvdPIkOahvHpknSex0qeQ/J+fyKRVuWRWNIV4tGIkJlCivQ12wQitMdP++t 8Oteh8SuVvs60NdctzqA5LukTUK2zGlNr7LWRmFuzQeUe8d/4IjtZpzf9OaCh+qa 0qxcYGd58KGLwjCHjWjcw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1665850202; x= 1665936602; bh=a7tJKn0XWj7CThm5hN4vFcUWWAZYEnB7Zkq1HHh88gE=; b=J 2cyULvDSzv+kHxeBsoPRvuHl6fBAqBZ7soGVLR1X2TCpExYagiPaRtzIcilmgsO8 IOX+kUXS1iDFp2nVxH+9p/uVqqLoV1Uhg5+moNGTVOGqpes70Y0g5Ux1d1OmCb5/ pF/BAXPmXL9pXhYkMAhsbgD1gZGtkgSfzalp0Zg04smp+HlHvYggHgp9JfcGaMCv FMfdIn6rh48kXs1rwBD+y8W6Vxny9vBexcog9r2gvns2B7IhA+Y9mFMLnboJREzM vxCydtBvhOeUxSBU56CygcOZNDS7/ZgPo2kpKaf/H8RdgdW1syt2+/Z8h83SM3Hz uTsTYBRXOT4gNS0v2nfJQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeekgedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepfeekgeevuedukeeutddvteegveeujeeghfdtveej ieeuteehgeefjeejledtgeelnecuffhomhgrihhnpehsqhhlihhtvgdrohhrghenucevlh hushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 15 Oct 2022 12:10:01 -0400 (EDT) Message-ID: <74596570-bd32-c970-6d2a-14305cd47d24@aklaver.com> Date: Sat, 15 Oct 2022 09:10:00 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: Attaching database Content-Language: en-US To: Igor Korot Cc: "David G. Johnston" , "Peter J. Holzer" , "pgsql-generallists.postgresql.org" References: <20201025182653.GA11390@hjp.at> <14bb730a-0bef-e7e7-2672-fff31422557b@aklaver.com> <5fbcdf5a-aad8-d927-b547-263db23fca2e@aklaver.com> 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 10/15/22 08:56, Igor Korot wrote: > Hi, Adrian, > > > So any and all operations/queries performed before, during or after that > will be done on (finance) catalog), because this is the "main" > connection, right? > I think you are getting stuck on SQLite terminology: https://sqlite.org/lang_attach.html "Transactions involving multiple attached databases are atomic, assuming that the main database is not ":memory:" and the journal_mode is not WAL. ..." That is different mechanism all together. The closest I can come with alternate example is linked tables in Access. You are working in one client connected to Server A that makes as needed connections to Server B to move data back and forth. You are not actually connected full time to Server B and your point of reference is the connection your client initially made to Server A. So yes because it is the "main" connection. -- Adrian Klaver adrian.klaver@aklaver.com