pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Igor Korot <ikorot01@gmail.com>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Attaching database
Date: Sat, 15 Oct 2022 09:10:00 -0700
Message-ID: <74596570-bd32-c970-6d2a-14305cd47d24@aklaver.com> (raw)
In-Reply-To: <CA+FnnTwiBg-KXKoCiOZZa43Eh0ANxEFvSDaN-m761ve_C5DxBw@mail.gmail.com>
References: <CA+FnnTz339n4z2WuQfP-WtjMXbf65DYs8mdhWtee7w8-42Ldcw@mail.gmail.com>
	<CAFj8pRCktpj00jQwbPS118jrXs4xwxk=TtMpRMSTf61xE+SR1g@mail.gmail.com>
	<CA+FnnTx-xCQ1=tiU_U734UyAeNhM_AHyWk9ZX9a3DGWhDfKesA@mail.gmail.com>
	<CAFj8pRB5Dq3ozKwAS_6rhTg-666L0qN74iXcQ3BnNOSU0jzU8w@mail.gmail.com>
	<20201025182653.GA11390@hjp.at>
	<CA+FnnTyidGOq4+ctHmBz5nPQddo3xJ0RsHoyEvEGPxEKLLcLnw@mail.gmail.com>
	<CAKFQuwZwLYD1LmBjNUXDDHMyb_4YD+sqQpBzfUu=gsVoqrrPcA@mail.gmail.com>
	<CA+FnnTwpYGt1D0bEVw6n2nRJZrzHfySOtGy4ugoTU1BnG_isjQ@mail.gmail.com>
	<14bb730a-0bef-e7e7-2672-fff31422557b@aklaver.com>
	<5fbcdf5a-aad8-d927-b547-263db23fca2e@aklaver.com>
	<CA+FnnTwiBg-KXKoCiOZZa43Eh0ANxEFvSDaN-m761ve_C5DxBw@mail.gmail.com>

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






view thread (17+ messages)  latest in thread

Message-ID: <74596570-bd32-c970-6d2a-14305cd47d24@aklaver.com>
Permalink:  ../74596570-bd32-c970-6d2a-14305cd47d24@aklaver.com/
Also on:    postgresql.org/message-id/74596570-bd32-c970-6d2a-14305cd47d24@aklaver.com

 · 

reply

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: adrian.klaver@aklaver.com, ikorot01@gmail.com, david.g.johnston@gmail.com, hjp-pgsql@hjp.at
  Subject: Re: Attaching database
  In-Reply-To: <74596570-bd32-c970-6d2a-14305cd47d24@aklaver.com>
  References: <CA+FnnTz339n4z2WuQfP-WtjMXbf65DYs8mdhWtee7w8-42Ldcw@mail.gmail.com> <CAFj8pRCktpj00jQwbPS118jrXs4xwxk=TtMpRMSTf61xE+SR1g@mail.gmail.com> <CA+FnnTx-xCQ1=tiU_U734UyAeNhM_AHyWk9ZX9a3DGWhDfKesA@mail.gmail.com> <CAFj8pRB5Dq3ozKwAS_6rhTg-666L0qN74iXcQ3BnNOSU0jzU8w@mail.gmail.com> <20201025182653.GA11390@hjp.at> <CA+FnnTyidGOq4+ctHmBz5nPQddo3xJ0RsHoyEvEGPxEKLLcLnw@mail.gmail.com> <CAKFQuwZwLYD1LmBjNUXDDHMyb_4YD+sqQpBzfUu=gsVoqrrPcA@mail.gmail.com> <CA+FnnTwpYGt1D0bEVw6n2nRJZrzHfySOtGy4ugoTU1BnG_isjQ@mail.gmail.com> <14bb730a-0bef-e7e7-2672-fff31422557b@aklaver.com> <5fbcdf5a-aad8-d927-b547-263db23fca2e@aklaver.com> <CA+FnnTwiBg-KXKoCiOZZa43Eh0ANxEFvSDaN-m761ve_C5DxBw@mail.gmail.com> <74596570-bd32-c970-6d2a-14305cd47d24@aklaver.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