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 1uglIX-0075Ga-6z for pgsql-general@arkaria.postgresql.org; Tue, 29 Jul 2025 14:27:21 +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 1uglIW-001vzr-9g for pgsql-general@arkaria.postgresql.org; Tue, 29 Jul 2025 14:27:20 +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 1uglIV-001vzj-Vj for pgsql-general@lists.postgresql.org; Tue, 29 Jul 2025 14:27:20 +0000 Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uglIU-001OZ5-1p for pgsql-general@lists.postgresql.org; Tue, 29 Jul 2025 14:27:19 +0000 Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-712be7e034cso52708777b3.0 for ; Tue, 29 Jul 2025 07:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1753799238; x=1754404038; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QtXVVJIoBiHdoCDXysTvrz12CRw/RWYiScDOImaRp04=; b=CDEtLpRN1fivS/VMTRr8XRHoBqst4iyirzBE71JI5/9bd4JjWWCDlV2ElqvUPyjQEk 7TX8RaQyWK5DsloAlgXKyjV9DewecpVs9eJzQIjzF9aRvXPrqRx/xfDnh4HlGbtWuioh E4BbX5IWXWGPpyw2HE/cNd/d2EufiQyw2xTeZSG2fffjWFT3X32xdBTj2sZ+YOXqnuug MF1Dsg3dRZB201iYn6pwF23wSeyBBEBbwZibhyT5qCq+EMkJkExRbQtd24qudPfZbOFC oPybvoRk1P8dc3E0KuC4th7XakAB+L03kW3ATAUsfK8n9vOckXSs4Prr5gp+jhnCWrBs 8BAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1753799238; x=1754404038; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QtXVVJIoBiHdoCDXysTvrz12CRw/RWYiScDOImaRp04=; b=kfq964N5S2VSzyKvUOjzBEDKjRpJ0/NZsiwrD1Vzm6/pBJl/Xj8/T1uBOnlpwElTbh egUWcfpweEtt4ofg/VhGfPXIh8oCKcU6OYcYt9RFbic1R5/+rpO2USuOwIUcDQ4D4eUa vCVorSA+YIipAtqHbOPXyi7f50NEtqkgY3CGK4F8xv43BApPAoSkvyPw8B3cv3qdFD+G Bt8TpksFJC+rywguvxrjxO5rLWjgQjJsNuOfODGZZYSlR9eBSKXt70d8Iv8tXihKbRWO HptK9d3iMRSZ0PSR3f0qnd1249Ws8wIpPGjC6yaa/ROXomSrWDgACI/8C/DqvZfbZCkv SvXg== X-Forwarded-Encrypted: i=1; AJvYcCVFbt3p7WsRs/pCvx7CHHp+z+yt5TdkprYXae7ws2o2Xm+QEkogn9ib1t6VNiTGguUu3BJrI002DiK1r5UG@lists.postgresql.org X-Gm-Message-State: AOJu0YymTVZjOUqC+H8qeDiEyeVsiMqMRVaHzYL/Pj83CUjmgK6XflJT 6OuLo71L0BB4cdnWSvniweVn7Ii5lcqsTDKK7Wy8hFzHkqmgPqYCNHCqOomCyzbxnWlaDWdKtGT 4DjBeR7rusCVHGf3ZzX3BG9cN5SzT6+M= X-Gm-Gg: ASbGncsQef50XM2T/FwJLQf0b9LIujd77KWRLltx1/snx4edwhCZvrPlzzqGyn6n7Ly 5DGU2eRDdjzeSsVcaNUKHU9oIl/m86iopo7ePyZcgVnxItkPmrJBrCyCrcg1EcWzc+zZXyzV3JN Xvo2VaYE+cLhhMJQIBapWmi7nzxWI/bL9usiowi2wYyVmsHU67dvRqZJpAFELrVQ7qF9X1Dd3El OnPEZ4p X-Google-Smtp-Source: AGHT+IHNINLcgt+BVfmU5Fc4Thwc08KuPe6Cw9RSuLA2XY4o7w4DsDLY+bG4C8sD/3RdEsUsq2A4IhTI3l+FFNp49hw= X-Received: by 2002:a05:690c:fce:b0:71a:22aa:c558 with SMTP id 00721157ae682-71a465edb06mr487567b3.4.1753799237546; Tue, 29 Jul 2025 07:27:17 -0700 (PDT) MIME-Version: 1.0 References: <090d8588-e74e-4436-8f69-05ce8624379b@aklaver.com> <0BC8BEBF-3B1F-4E69-A1B9-CCCDF9617168@thebuild.com> <7281c379994ffc70cebb68423f5b8ba339d0d75f.camel@cybertec.at> <2fad4427bff83bc73f9b4215e284a76343f046f2.camel@cybertec.at> In-Reply-To: From: Igor Korot Date: Tue, 29 Jul 2025 10:27:05 -0400 X-Gm-Features: Ac12FXzRHKrxHPaUVUypSxvC9fwGU29d_B_pApCdR0c7DMMaHQbeG4w0NPcDF6s Message-ID: Subject: Re: Get info about the index To: Laurenz Albe Cc: David Barbour , Jon Zeppieri , Christophe Pettus , Adrian Klaver , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000008fb9da063b12345f" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008fb9da063b12345f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jul 29, 2025, 9:24=E2=80=AFAM Laurenz Albe wrote: > On Tue, 2025-07-29 at 07:18 -0500, Igor Korot wrote: > > If I have a database for some financial data for the year 2024 in the > > mydb_2024 and I have current year financial data in the mydb_2025 how > > can I compare the data? > > You connect to both and query them both. > > Alternatively, you use postgres_fdw to access the other database. > > Even better, put both tables in the same database, perhaps in different > schemas. > Understood. It was just an educational question to better understand all possible ways to proceed. Thank you. > Yours, > Laurenz Albe > --0000000000008fb9da063b12345f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, Jul 29, 2025, 9:24=E2=80= =AFAM Laurenz Albe <laurenz.= albe@cybertec.at> wrote:
On = Tue, 2025-07-29 at 07:18 -0500, Igor Korot wrote:
> If I have a database for some financial data for the year 2024 in the<= br> > mydb_2024 and I have current year financial data in the mydb_2025 how<= br> > can I compare the data?

You connect to both and query them both.

Alternatively, you use postgres_fdw to access the other database.

Even better, put both tables in the same database, perhaps in different sch= emas.

Understood.

It was = just an educational question to better understand all possible ways to proc= eed.

Thank you.


Yours,
Laurenz Albe
--0000000000008fb9da063b12345f--