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 1sQmyI-00Bdf1-G1 for pgsql-sql@arkaria.postgresql.org; Mon, 08 Jul 2024 11:55:54 +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 1sQmyH-005DPY-6R for pgsql-sql@arkaria.postgresql.org; Mon, 08 Jul 2024 11:55:53 +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 1sQmyG-005DPQ-Tc for pgsql-sql@lists.postgresql.org; Mon, 08 Jul 2024 11:55:52 +0000 Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sQmyE-0012OI-Uq for pgsql-sql@lists.postgresql.org; Mon, 08 Jul 2024 11:55:52 +0000 Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-48fe9381454so2099121137.1 for ; Mon, 08 Jul 2024 04:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720439749; x=1721044549; 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=KDkKMcrzvJdxPxA/5GLLPGmn0j7XILRpXKi8FVJoQ+o=; b=dUmu7IUAC4948HSsnUo5qNAZI/4/k2/nWjAYPkVf7axRrqDAieo0v+TIxbe8I0kYyn Y+iMmkyofkaSbl1y3W3Y5OQKe0785RDHPm/A0r5ZYWSPPI6pqzYkROICdbLOEjmv4cCK PgHxKoxusv2I7j0EYXRPlfKDIYi/CRD6699AQwg62v0mcRvxeSO3P05bolEWmgDHdR3N FG9ZagSMwZr7bec/wzlJDNr1Tq59mvi3yz+dQoql2bwiKGXWaaCkwkGQPN7JlfY8X/EN FrIDGql5B0CLaxD/BeaAl40oydGoA1Jr6/kMGvA4iUpPpHx5zmbGz39+WTiXpBff0b/y PDiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720439749; x=1721044549; 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=KDkKMcrzvJdxPxA/5GLLPGmn0j7XILRpXKi8FVJoQ+o=; b=fyvEQ/7pt1VvZWFCqZzbciVl8HxYYhbiGn0fIES3Zdovy1H0MEByCKOHBBIVYQTFbP +Fw60uOd6BOIyTwwNPhvc0JZGENkFBqqJlGk/M1gkQWSuWa7evGjrC5cWLERCvj66GT2 /LqbB/uFC85q3dgqI+Jnl2B03sDvaFlYmRP5SSmTXXcq5HYLZqjV77GswhH9C5toKnpF SUHZ4wuQGiDFEVGTY0AVoQNe2lfp64O524wkpcHniXQC8a0bzqhnXwaEe/4LQkLU/t19 10t1AJLBdfrhaYRmMi57WMs1rffrq9vxvMOLiXmmB9RmrkR0MV9pDfH2CcToEIZRN26w ENOg== X-Gm-Message-State: AOJu0YxTSYS8puyaeBqZZras+TquYlZz4zhhh3M1aHIWRRrdgpegGS3p vNh5gQJmbc3aY8jgW306sGxn/3uB9FUkxJZK7XtmABxa9FV4GF1pCkAdGuHvIMB75HdxbXUBsgV c8Ay8qPb4K+16L0JeRQWtKNFJp+A= X-Google-Smtp-Source: AGHT+IFZCZPG6ZQn1NbD7Rr2EjFgQpK8W9hMueVNjvP/c77dBZrrFRRsr2I+XczWwFazDq1Vu48DGQM2MmRuRPEiTiQ= X-Received: by 2002:a05:6102:178e:b0:48f:3411:4021 with SMTP id ada2fe7eead31-48fef220ab6mr7500778137.10.1720439748885; Mon, 08 Jul 2024 04:55:48 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Kashif Zeeshan Date: Mon, 8 Jul 2024 16:55:37 +0500 Message-ID: Subject: Re: Trick to create alias/mirror table To: intmail01 Cc: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000001704b0061cbb18bb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001704b0061cbb18bb Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi You can use following options 1. Postgres FDW 2. Materialized Views Regards Kashif Zeeshan On Mon, Jul 8, 2024 at 4:25=E2=80=AFPM intmail01 wrot= e: > > > Hi, > Looking for a trick to make something like an alias or a mirror table. Th= e > alias can be updated. View is not suitable because it is read only data. > The alias is always linked to the original table. When a modification > occurred in the original table this will be visible in all link tables. > > Thanks > --0000000000001704b0061cbb18bb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi

You can use following options
<= div>
1. Postgres FDW
2. Materialized Views


Regards
Kashif Zeeshan

On Mo= n, Jul 8, 2024 at 4:25=E2=80=AFPM intmail01 <intmail01@gmail.com> wrote:
=


Hi,
Looking for a trick to make something like an= alias or a mirror table. The alias can be updated. View is not suitable be= cause it is read only data. The alias is always linked to the original tabl= e. When a modification occurred in the original table this will be visible = in all link tables.

Thanks
--0000000000001704b0061cbb18bb--