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 1tpgaH-00AIsy-NZ for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 04:42:17 +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 1tpgaG-000Ra9-Fg for pgsql-general@arkaria.postgresql.org; Wed, 05 Mar 2025 04:42:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tpgaF-000Ra0-FX for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 04:42:16 +0000 Received: from fout-a3-smtp.messagingengine.com ([103.168.172.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tpgaA-00122s-36 for pgsql-general@lists.postgresql.org; Wed, 05 Mar 2025 04:42:15 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.phl.internal (Postfix) with ESMTP id D3E011381150; Tue, 4 Mar 2025 23:42:09 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 04 Mar 2025 23:42:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=fm3; t=1741149729; x=1741236129; bh=DPALr7Bsnl9x3quoIBpJD1J3XYycoiEstnA0lZ9NZew=; b= fgAs17BqLv9P4MHu9Cj8PoxfAyPpI9NBLcX1ReT5gyzKrAXjDe4CNLoQMKDsnCvB Fgu0V8zbZ2YpyfQivdlWS75r7PuTh6Z9b4QnkIyNcjowgwQ9A0b95OfrQ1jhovwl XrQNkKogFYlNK8e3LnhIMQuK/7OMQSP7WGXp3EoHi9IWC7o2pA+VXlU0FiN/LfXP 5BbFUMZWXAsDp8LN3FmCRq/AMC62dq1abIMPo2ifBguW941S14r5TPi6Jopbs/vC hWDI60ybfi3SKoGprvVhJX6KsMzkMXDUJXYQYJoVbpQ9cOn8sBaU3sIDdJ/xmsbE v8G0qWnbKDC6WK1aCkZoAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm1; t=1741149729; x=1741236129; bh=D PALr7Bsnl9x3quoIBpJD1J3XYycoiEstnA0lZ9NZew=; b=0xxi97h4Q7p439OlL QYOsIRh2vCTuw2qTXj/jfJYJA/neGHbQ/Cg/RgWv497KZtfnk+0wko0W0CzBeOnE vGXM75fl6RsXvWYigtdJ5YGdhXxLX4X/upb7gWnHoGhbz/tXwPrmoqs0S+Tma+c0 OzYaIRJZCMB/ZxLa/02b+twcGpgLzwoZRytRFDRm+VVwKgMNr9mcxZuHALhbMzkl 1ZAgSnRTIynZEUzlwf63dZFsND5TQQDu+5W/faJbexuWLREEOEw/Skro+kBoN0Qi zy6eal4BM39A1GbP6j8FU4gunBWxJ0N1kmD3NIBPuA+eeruiwg/arb/IkVJe6WEO 41Idg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdefkeejucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefkff ggfgfuvfhfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghv vghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrf grthhtvghrnhepkeefheduvdejiefgieefjedtudduffelvdefleehfedtieffuefgvdek leegtddvnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghv vghrsegrkhhlrghvvghrrdgtohhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmth hpohhuthdprhgtphhtthhopehsnhdrudefiedusehgmhgrihhlrdgtohhmpdhrtghpthht ohepphhgshhqlhdqghgvnhgvrhgrlheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Mar 2025 23:42:09 -0500 (EST) Message-ID: Date: Tue, 4 Mar 2025 20:42:08 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Quesion about querying distributed databases To: me nefcanto , pgsql-general@lists.postgresql.org References: 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/4/25 20:40, me nefcanto wrote: > Hello > > Consider this scenario: > > * 3 servers, 3 databases, each on a separate server: > o *Products database*: Contains the *Products* table (with over > 100,000 records). > o *Taxonomy database*: Contains the *Categories* and > *ItemCategories (EAV)* tables. > o *Attributes database*: Contains the *Attributes* and > *ItemAttributes (EAV)* tables. > > How do you find products based on the following criteria? https://www.postgresql.org/docs/current/postgres-fdw.html > > 1. A search in the title (e.g., "awesome shirts"). > 2. Selected categories (e.g., "casual" and "sports"). > 3. Selected attributes (e.g., "color: blue" and "size: large") > > > Regards > Saeed -- Adrian Klaver adrian.klaver@aklaver.com