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 1sQmVE-00BbR1-88 for pgsql-sql@arkaria.postgresql.org; Mon, 08 Jul 2024 11:25:52 +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 1sQmVC-004tNV-Uk for pgsql-sql@arkaria.postgresql.org; Mon, 08 Jul 2024 11:25:50 +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 1sQmVC-004tMz-LF for pgsql-sql@lists.postgresql.org; Mon, 08 Jul 2024 11:25:50 +0000 Received: from mail-ot1-x333.google.com ([2607:f8b0:4864:20::333]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sQmVA-0012Ax-Gv for pgsql-sql@lists.postgresql.org; Mon, 08 Jul 2024 11:25:50 +0000 Received: by mail-ot1-x333.google.com with SMTP id 46e09a7af769-7035b2947a4so1534775a34.3 for ; Mon, 08 Jul 2024 04:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720437946; x=1721042746; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=ezHLb8eJGD1NE3Ghhl9kX17YAdJ7AKLo0TGY/sN4Fck=; b=VXaatJSZ/1d/jbPlUtppuIwkuwFCO0juRM6Hk8xwAhVkzW0i+lt508dcEPc++HlEoo V0inhFW4c4Yw6udZ+KqsXK83YmREeTJhHMrU3B0GRhZV8vOUemMPxiDpIMNqwRIba8fu 1aAv4BIlnpEDEncHmepPbKbf4bbilzSoVAEmL/gXFvpULvuyhWnKeANzwmQzqbujbd2s GS1zJ8zJpYizjiBlPfb+4HAZQHDYhU3HGDYnJMYYc5K9zCL6d1BOReUqTWxsBIJge1lx dgncRo7gHAJ4kZ/CaPwmvTuQJ4DLa1jAPsLC6l87h8+OkPwLJ78l8ZOi41U0Np/r6qNu IP8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720437946; x=1721042746; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ezHLb8eJGD1NE3Ghhl9kX17YAdJ7AKLo0TGY/sN4Fck=; b=uEXLWs/q77o6PLDTHQiadglI+S/XxnV5Fi1kdxvwJAFAaG810xyFmw3pYhk4VRZbrm a1cpxFQhQWzRXJafASFunIFyMoBMeBGlb18FP8aXhNaUx3UleRiAU7vjl4GZ/yVTMWUa O6ocCk5/kDgY3EW0zQ6UfP6DzlAchP7pZQZkPuJv7DZp23skNqxVoLW21ggyh8WDx8me iLftk+M0EZFdV0pcD2e+Xo1Ncu/hZtFpHNOAepcmmd/AkAyq6t09svgnv3wbCAApdMzN YFA6LjhOCfY2kFdoTQMxoYG9PZ44HM+4mr739eoetZrPdFdItDCalUW+cQDWeIXR4Da1 jpCg== X-Gm-Message-State: AOJu0YxJYyevPQD2BzRkXUc3WeOKcK0O4fOK+gst/C5j1coUqa8YMpg7 C/ywnReNIjgOHaE2cVEgPH3Ia7jvw2kY//tXV5E1WLGTc+lFJvL1hQAzLzFKG+V9escAUTWbQhf le4olDiDWD6NzGdMEGwKUjCIBKanFsOaz X-Google-Smtp-Source: AGHT+IGAvP8nRjl1WCSyslht3Qg8DL9okse74bKK1M12clgWz+JT6Ixgc8LCVaJlrHDLanXaiBbjL/HJHNgYSPXTFHU= X-Received: by 2002:a05:6870:b50b:b0:25d:fab0:b6f3 with SMTP id 586e51a60fabf-25e2bf6358fmr8946058fac.59.1720437946148; Mon, 08 Jul 2024 04:25:46 -0700 (PDT) MIME-Version: 1.0 From: intmail01 Date: Mon, 8 Jul 2024 14:27:37 +0300 Message-ID: Subject: Trick to create alias/mirror table To: pgsql-sql@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000a3718b061cbaac19" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a3718b061cbaac19 Content-Type: text/plain; charset="UTF-8" Hi, Looking for a trick to make something like an alias or a mirror table. The 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 --000000000000a3718b061cbaac19 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

<= /td>

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
--000000000000a3718b061cbaac19--